mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 06:52:52 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
|
|
/*************************************************************************
|
|
PURPOSE: (Cannonball Structure)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(cannon/gravity/src/cannon_default_data.o)
|
|
(cannon/gravity/src/cannon_init.o)
|
|
(cannon/gravity/src/cannon_integ.o)
|
|
(cannon/integ/src/cannon_integ2.o)
|
|
(cannon/gravity/src/cannon_deriv.o)
|
|
(cannon/integ/src/cannon_deriv2.o)
|
|
)
|
|
|
|
**************************************************************************/
|
|
|
|
#ifndef CANNON_H
|
|
#define CANNON_H
|
|
#include <stdio.h>
|
|
#include "sim_services/Integrator/include/regula_falsi.h"
|
|
#include "trick_utils/comm/include/tc.h"
|
|
#include "trick_utils/comm/include/tc_proto.h"
|
|
|
|
typedef struct {
|
|
|
|
double pos0[2] ; /* *i M Init position of cannonball */
|
|
double vel0[2] ; /* *i M Init velocity of cannonball */
|
|
double acc0[2] ; /* *i M Init acceleration of cannonball */
|
|
|
|
double pos[2] ; /* M xy-position */
|
|
double vel[2] ; /* M/s xy-velocity */
|
|
double acc[2] ; /* M/s2 xy-acceleration */
|
|
double init_speed ; /* *i M/s Init barrel speed */
|
|
double init_angle ; /* *i r Angle of cannon */
|
|
|
|
/* Impact */
|
|
REGULA_FALSI rf ; /* -- Dynamic event params for impact */
|
|
int impact ; /* -- Has impact occured? */
|
|
|
|
FILE *fp ; /* -- file pointer */
|
|
|
|
/* Communication Connection */
|
|
TCDevice connection ; /* -- Socket connection for sending position */
|
|
} CANNON ;
|
|
|
|
#endif
|