Spacecraft Control Bundle 1
fsw_solar_wing_control.h
1/*
2 * Header file for object of class fsw_solar_wing_control.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef FSW_SOLAR_WING_CONTROL
10#define FSW_SOLAR_WING_CONTROL
11
12
14
19class fsw_solar_wing_control : public cd_control_module
20{
21 public:
22 fsw_solar_wing_control (const char * mod_name);
23 void initialize_data();
24 void initialize();
25 void handle_event(int code);
26
27 protected:
31 CD_REQUEST_REF azimuth_x_sim_ref;
33 CD_REQUEST_REF elevation_x_sim_ref;
35 CD_REQUEST_REF presence_x_sim_ref;
38
40 CD_REQUEST_REF azimuth_y_sim_ref;
42 CD_REQUEST_REF elevation_y_sim_ref;
44 CD_REQUEST_REF presence_y_sim_ref;
47
49 CD_REQUEST_REF azimuth_z_sim_ref;
51 CD_REQUEST_REF elevation_z_sim_ref;
53 CD_REQUEST_REF presence_z_sim_ref;
56
61
63 CD_REQUEST_REF ephem_sun_vector_ref;
65 CD_REQUEST_REF quaternion_ref;
67
75
82};
83
84extern "C"
85{
86 cd_control_module *fsw_solar_wing_control_builder(const char *name);
87}
88
89#endif
Generate a rate command for a solar wing motor.
Definition: fsw_solar_wing_control.h:20
CD_REQUEST_REF q_body_to_sensor_z_sim_ref
Z sensor body to sensor quaternion.
Definition: fsw_solar_wing_control.h:55
CD_REQUEST_REF elevation_y_sim_ref
Y sensor sun elevation.
Definition: fsw_solar_wing_control.h:42
CD_REQUEST_REF azimuth_z_sim_ref
Z sensor sun azimuth.
Definition: fsw_solar_wing_control.h:49
CD_REQUEST_REF minus_y_gimbal_rate_demand_ref
Pseudo-inverse for reaction wheels.
Definition: fsw_solar_wing_control.h:73
CD_REQUEST_REF elevation_x_sim_ref
X sensor sun elevation.
Definition: fsw_solar_wing_control.h:33
CD_REQUEST_REF azimuth_x_sim_ref
X sensor sun azimuth.
Definition: fsw_solar_wing_control.h:31
CD_REQUEST_REF plus_y_gimbal_rate_demand_ref
Command to use different actuators.
Definition: fsw_solar_wing_control.h:71
CD_REQUEST_REF q_body_to_sensor_x_sim_ref
X sensor body to sensor quaternion.
Definition: fsw_solar_wing_control.h:37
CD_REQUEST_REF ephem_sun_vector_ref
Sun vector.
Definition: fsw_solar_wing_control.h:63
CD_REQUEST_REF presence_z_sim_ref
Z sensor sun presence.
Definition: fsw_solar_wing_control.h:53
CD_REQUEST_REF elevation_z_sim_ref
Z sensor sun elevation.
Definition: fsw_solar_wing_control.h:51
CD_REQUEST_REF quaternion_ref
The estimated quaternion.
Definition: fsw_solar_wing_control.h:65
void initialize_data()
Create data and request FSW_SOLAR_WING_CONTROL_TRIGGER.
Definition: fsw_solar_wing_control.cc:17
CD_REQUEST_REF presence_x_sim_ref
X sensor sun presence.
Definition: fsw_solar_wing_control.h:35
CD_REQUEST_REF q_body_to_sensor_y_sim_ref
Y sensor body to sensor quaternion.
Definition: fsw_solar_wing_control.h:46
CD_REQUEST_REF presence_y_sim_ref
Y sensor sun presence.
Definition: fsw_solar_wing_control.h:44
CD_REQUEST_REF minus_y_gimbal_angle_ref
Minus y angle.
Definition: fsw_solar_wing_control.h:58
CD_REQUEST_REF azimuth_y_sim_ref
Y sensor sun azimuth.
Definition: fsw_solar_wing_control.h:40
CD_REQUEST_REF plus_y_gimbal_angle_ref
Plus y angle.
Definition: fsw_solar_wing_control.h:60
CD_CREATE_REF solar_wing_gain_command_ref
Gain.
Definition: fsw_solar_wing_control.h:80