X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Outputs.hxx;h=d31edc76643e54ac90a3d8edb5d4e4ba297085bd;hb=50eb95dcadaf39d892212f2c5c6fe2459b190719;hp=ee43d136cc687d9e3c815b5faf7d06bd5baf2947;hpb=ec827732226e905a8a0ce9af700b63b183b18c5c;p=flightgear.git diff --git a/src/Network/ATC-Outputs.hxx b/src/Network/ATC-Outputs.hxx index ee43d136c..d31edc766 100644 --- a/src/Network/ATC-Outputs.hxx +++ b/src/Network/ATC-Outputs.hxx @@ -16,7 +16,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -31,6 +31,7 @@ #include
#define ATC_RADIO_DISPLAY_BYTES 48 +#define ATC_ANALOG_OUT_CHANNELS 48 #define ATC_COMPASS_CH 5 #define ATC_STEPPER_HOME 0xC0 @@ -43,21 +44,26 @@ class FGATCOutput { SGPath config; int lock_fd; + int analog_out_fd; int lamps_fd; int radio_display_fd; int stepper_fd; + char analog_out_file[256]; char lamps_file[256]; char radio_display_file[256]; char stepper_file[256]; + unsigned char analog_out_data[ATC_ANALOG_OUT_CHANNELS*2]; unsigned char radio_display_data[ATC_RADIO_DISPLAY_BYTES]; - SGPropertyNode *lamps_out_node; - SGPropertyNode *radio_display_node; - SGPropertyNode *steppers_node; + SGPropertyNode_ptr analog_out_node; + SGPropertyNode_ptr lamps_out_node; + SGPropertyNode_ptr radio_display_node; + SGPropertyNode_ptr steppers_node; void init_config(); + bool do_analog_out(); bool do_lamps(); bool do_radio_display(); bool do_steppers();