mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 06:52:52 +00:00
73 lines
2.4 KiB
C
73 lines
2.4 KiB
C
/********************************* TRICK HEADER *******************************
|
|
PURPOSE:
|
|
(Ball model altitude control system parameter definition.)
|
|
REFERENCE:
|
|
(((Bailey, R.W, and Paddock, E.J.)
|
|
(Trick Simulation Environment) (NASA:JSC #37943)
|
|
(JSC/Engineering Directorate/Automation, Robotics and Simulation Division)
|
|
(March 1997)))
|
|
ASSUMPTIONS AND LIMITATIONS:
|
|
((2 jets)
|
|
(jet 0 fires down)
|
|
(jet 1 fires up)
|
|
(simple bang-bang phase plane))
|
|
PROGRAMMERS:
|
|
(((Your Name) (Company Name) (Date) (Trick tutorial)))
|
|
*******************************************************************************/
|
|
|
|
/*
|
|
* $Log: ball_control.h,v $
|
|
* Revision 5.2 2004-08-18 10:27:01-05 lin
|
|
* Take Out *o Spec In Ball L2 For Checkpoint Reload
|
|
*
|
|
* Revision 5.1 2004/08/05 18:06:27 lin
|
|
* Bump
|
|
*
|
|
* Revision 4.1 2003/10/21 21:49:36 lin
|
|
* Bump version number for 04
|
|
*
|
|
* Revision 3.3 2002/10/07 15:16:02 lin
|
|
* Add rcs version info to all trick_models files
|
|
*
|
|
*/
|
|
|
|
#ifndef _BALL_CONTROL_H_
|
|
#define _BALL_CONTROL_H_
|
|
|
|
#include "sim_services/include/Flag.h"
|
|
|
|
typedef struct { /* BCONTROL_IN ----------------------------------------------*/
|
|
|
|
Flag active ; /* -- Yes = control system active */
|
|
double target_altitude ; /* M Altitude to achieve and hold */
|
|
double dead_zone ; /* M delta altitude about target altitude where
|
|
no jets are fired */
|
|
double max_rate ; /* M/s Maximum allowed altitude rate of change */
|
|
|
|
} BCONTROL_IN ; /*------------------------------------------------------------*/
|
|
|
|
typedef struct { /* BCONTROL_OUT ---------------------------------------------*/
|
|
|
|
Flag jet_command[2] ; /* -- Reaction control jet commands */
|
|
|
|
} BCONTROL_OUT ; /*-----------------------------------------------------------*/
|
|
|
|
typedef struct { /* BCONTROL_WORK --------------------------------------------*/
|
|
|
|
double last_altitude ; /* *io M Sensed altitude from last pass */
|
|
double rate_est ; /* M/s Estimated altitude rate of change */
|
|
|
|
} BCONTROL_WORK ; /*----------------------------------------------------------*/
|
|
|
|
typedef struct { /* BCONTROL -------------------------------------------------*/
|
|
|
|
BCONTROL_IN input ; /* -- User inputs */
|
|
BCONTROL_OUT output ; /* -- User outputs */
|
|
BCONTROL_WORK work ; /* -- Model workspace */
|
|
|
|
} BCONTROL ; /*---------------------------------------------------------------*/
|
|
|
|
#endif
|
|
|
|
|