Spacecraft Control Bundle 1
fsw_low_thrust_guidance.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef FSW_LOW_THRUST_GUIDANCE
10#define FSW_LOW_THRUST_GUIDANCE
11
14class fsw_low_thrust_guidance : public cd_control_module
15{
16 public:
17 fsw_low_thrust_guidance (const char * mod_name);
18 void initialize_data();
19 void initialize();
20 void handle_event(int code);
21
22 protected:
23
24 void initialize_guidance_file();
25
29 CD_REQUEST_REF od_state_ref;
31 CD_REQUEST_REF ephem_sun_vector_ref;
33 CD_REQUEST_REF quaternion_ref;
35 CD_REQUEST_REF ephem_observer_ref;
41 CD_REQUEST_REF ephem_planet_index_ref;
43 CD_REQUEST_REF julian_date_ref;
45 CD_REQUEST_REF target_data_ref;
47 CD_REQUEST_REF mass_ref;
49 CD_REQUEST_REF control_period_ref;
51
61
92
103
104
105
106 // Storage for the guidance file
107 ml_matrix guidance_file;
108 int file_initialized;
109 int file_index;
110
111
112};
113
114extern "C"
115{
116 cd_control_module *fsw_low_thrust_guidance_builder(const char *name);
117}
118
119#endif
Low thrust guidance.
Definition: fsw_low_thrust_guidance.h:15
CD_REQUEST_REF target_data_ref
Target data.
Definition: fsw_low_thrust_guidance.h:45
CD_REQUEST_REF ephem_observer_ref
Observer.
Definition: fsw_low_thrust_guidance.h:35
CD_REQUEST_REF ephem_planet_position_ref
Planet position.
Definition: fsw_low_thrust_guidance.h:37
CD_REQUEST_REF od_state_ref
Orbit state.
Definition: fsw_low_thrust_guidance.h:29
CD_REQUEST_REF acs_target_quaternion_ref
Desired quaternion.
Definition: fsw_low_thrust_guidance.h:97
CD_REQUEST_REF ephem_planet_velocity_ref
Planet position.
Definition: fsw_low_thrust_guidance.h:39
CD_REQUEST_REF ephem_planet_index_ref
Planet index.
Definition: fsw_low_thrust_guidance.h:41
CD_REQUEST_REF mass_ref
Spacecraft mass.
Definition: fsw_low_thrust_guidance.h:47
CD_CREATE_REF guidance_target_orbit_phase_ref
Target orbit phase.
Definition: fsw_low_thrust_guidance.h:55
CD_REQUEST_REF julian_date_ref
Julian date.
Definition: fsw_low_thrust_guidance.h:43
void initialize_data()
Load a text file, LEOToSunEarthL2TrajECI.txt, with the trajectory information Request the FSW_LOW_THR...
Definition: fsw_low_thrust_guidance.cc:32
CD_REQUEST_REF quaternion_ref
Measured quaternion.
Definition: fsw_low_thrust_guidance.h:33
CD_REQUEST_REF control_period_ref
Control period command.
Definition: fsw_low_thrust_guidance.h:49
CD_REQUEST_REF guidance_pulsewidth_demand_ref
Pulsewidth demand.
Definition: fsw_low_thrust_guidance.h:101
CD_CREATE_REF guidance_target_orbit_force_ref
Target force.
Definition: fsw_low_thrust_guidance.h:57
CD_REQUEST_REF ephem_sun_vector_ref
ECI sun vector.
Definition: fsw_low_thrust_guidance.h:31
CD_REQUEST_REF acs_control_mode_command_ref
ACS control mode (int)
Definition: fsw_low_thrust_guidance.h:99
CD_CREATE_REF guidance_thruster_mode_ref
Mode.
Definition: fsw_low_thrust_guidance.h:59
CD_CREATE_REF guidance_thrust_axis_command_ref
Thrust axis command.
Definition: fsw_low_thrust_guidance.h:84
CD_CREATE_REF guidance_tangential_force_commmand_ref
Tangential force command (double)
Definition: fsw_low_thrust_guidance.h:90
CD_CREATE_REF guidance_target_id_command_ref
Target ID command (int)
Definition: fsw_low_thrust_guidance.h:72
CD_CREATE_REF guidance_mode_command_ref
Guidance mode command (int)
Definition: fsw_low_thrust_guidance.h:66
CD_CREATE_REF guidance_target_body_az_el_commmand_ref
Target az el to pass over (1x2 matrix)
Definition: fsw_low_thrust_guidance.h:88
CD_CREATE_REF guidance_use_rcs_command_ref
Use the RCS system for delta V (int) - UNUSED.
Definition: fsw_low_thrust_guidance.h:78
CD_CREATE_REF guidance_target_body_vector_command_ref
Body vector for target mode (3x1 matrix)
Definition: fsw_low_thrust_guidance.h:86
CD_CREATE_REF guidance_thruster_command_ref
Thruster set.
Definition: fsw_low_thrust_guidance.h:70
CD_CREATE_REF guidance_target_orbit_radius_command_ref
Target orbit radius command (double)
Definition: fsw_low_thrust_guidance.h:76
CD_CREATE_REF guidance_naif_ref_command_ref
NAIF reference for velocity (int)
Definition: fsw_low_thrust_guidance.h:80
CD_CREATE_REF julian_date_launch_ref
Julian date start (double)
Definition: fsw_low_thrust_guidance.h:82
CD_CREATE_REF guidance_file_command_ref
Trajectory file (string)
Definition: fsw_low_thrust_guidance.h:68
CD_CREATE_REF guidance_target_orbit_period_command_ref
Target orbit period command (double)
Definition: fsw_low_thrust_guidance.h:74