Spacecraft Control Bundle 1
fsw_saitek_x52.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2015, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef FSW_SAITEK_X52
10#define FSW_SAITEK_X52
11
12
13
16class fsw_saitek_x52 : public cd_control_module
17{
18 public:
19 fsw_saitek_x52 (const char * mod_name);
20 void initialize_data();
21 void initialize();
22 void handle_event(int code);
23
24 protected:
25
33 CD_REQUEST_REF acs_torque_demand_ref;
35 CD_REQUEST_REF control_period_ref;
37 CD_REQUEST_REF ad_q_eci_to_body_ref;
41
51 CD_CREATE_REF stick_mode_ref;
53 CD_CREATE_REF throttle_ref;
55 CD_CREATE_REF joystick_ref;
57 CD_CREATE_REF manual_on_ref;
59
60 private:
61 int saitek_initialized;
62 int manual_on;
63 double roll_manual_old, pitch_manual_old, yaw_manual_old;
65
66};
67
68extern "C"
69{
70 cd_control_module *fsw_saitek_x52_builder(const char *name);
71}
72
73#endif
The joystick interface.
Definition: fsw_saitek_x52.h:17
CD_REQUEST_REF acs_control_mode_command_ref
Control mode.
Definition: fsw_saitek_x52.h:39
CD_REQUEST_REF control_period_ref
Control period.
Definition: fsw_saitek_x52.h:35
CD_REQUEST_REF ad_q_eci_to_body_ref
Q ECI to Body.
Definition: fsw_saitek_x52.h:37
CD_CREATE_REF angular_increment_command_ref
Angular increment.
Definition: fsw_saitek_x52.h:45
CD_CREATE_REF torque_pulse_command_ref
Pulse torque command.
Definition: fsw_saitek_x52.h:49
CD_CREATE_REF stick_mode_ref
Stick mode.
Definition: fsw_saitek_x52.h:51
CD_CREATE_REF throttle_ref
Throttle.
Definition: fsw_saitek_x52.h:53
CD_REQUEST_REF guidance_pulsewidth_demand_ref
Command to set guidance thruster pulsewidth.
Definition: fsw_saitek_x52.h:31
CD_REQUEST_REF ad_q_eci_to_body_command_ref
Quaternion command.
Definition: fsw_saitek_x52.h:29
CD_CREATE_REF torque_max_command_ref
Maximum torque command.
Definition: fsw_saitek_x52.h:47
void initialize_data()
Create data and request #FSW_SAITEK_X52_TRIGGER.
Definition: fsw_saitek_x52.cc:28
CD_REQUEST_REF acs_torque_demand_ref
Torque demand.
Definition: fsw_saitek_x52.h:33
CD_CREATE_REF manual_on_ref
Manual control flag.
Definition: fsw_saitek_x52.h:57
CD_CREATE_REF joystick_ref
Joystick mode.
Definition: fsw_saitek_x52.h:55