2015-03-23 18:56:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
PURPOSE: (Parachutist Structure)
|
|
|
|
LIBRARY DEPENDENCIES:
|
|
|
|
(
|
|
|
|
(parachutist/src/Parachutist.o)
|
|
|
|
)
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _parachutist_hh_
|
|
|
|
#define _parachutist_hh_
|
|
|
|
#include "sim_services/Integrator/include/regula_falsi.h"
|
|
|
|
|
|
|
|
class Parachutist {
|
|
|
|
|
|
|
|
public:
|
2015-03-27 20:56:15 +00:00
|
|
|
double altitude ; /* m xyz-position */
|
2015-03-23 18:56:01 +00:00
|
|
|
double velocity ; /* m/s xyz-velocity */
|
|
|
|
double acceleration ; /* m/s2 xyz-acceleration */
|
|
|
|
|
2015-03-27 20:56:15 +00:00
|
|
|
double area; /* m2 */
|
|
|
|
double Cd; /* -- */
|
2015-03-23 18:56:01 +00:00
|
|
|
double mass; /* kg */
|
|
|
|
|
|
|
|
bool touchDown; /* -- */
|
|
|
|
|
|
|
|
REGULA_FALSI rf ;
|
|
|
|
|
|
|
|
int default_data();
|
|
|
|
int state_init();
|
|
|
|
int state_deriv();
|
|
|
|
int state_integ();
|
2015-03-27 20:56:15 +00:00
|
|
|
double touch_down(double groundAltitude);
|
2015-03-23 18:56:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|