2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/** TRICK HEADER **************************************************************
|
|
|
|
@file
|
|
|
|
|
|
|
|
@verbatim
|
|
|
|
PURPOSE:
|
|
|
|
(Ball model external force parameter definition.)
|
|
|
|
ASSUMPTIONS AND LIMITATIONS:
|
|
|
|
((2 dimensional space)
|
|
|
|
(Constant force)
|
|
|
|
(Always toward a stationary point))
|
|
|
|
PROGRAMMERS:
|
|
|
|
(((Your Name) (Company Name) (Date) (Trick tutorial)))
|
|
|
|
@endverbatim
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef BALL_FORCE_H
|
|
|
|
#define BALL_FORCE_H
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/** @struct BFORCE_IN
|
|
|
|
@brief ball force input parameters
|
|
|
|
*/
|
|
|
|
typedef struct { /* BFORCE_IN ------------------------------------------------*/
|
|
|
|
|
|
|
|
double origin[2] ; /**< (m) Origin of force center */
|
|
|
|
double force ; /**< (N) Force magnitude */
|
|
|
|
|
|
|
|
} BFORCE_IN ; /*--------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/** @struct BFORCE_OUT
|
|
|
|
@brief ball force output parameters
|
|
|
|
*/
|
|
|
|
typedef struct { /* BFORCE_OUT -----------------------------------------------*/
|
|
|
|
|
|
|
|
double force[2] ; /**< (N) Resulting X,Y force on ball */
|
|
|
|
|
|
|
|
} BFORCE_OUT ; /*-------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/** @struct BFORCE
|
|
|
|
@brief ball force parameters
|
|
|
|
*/
|
|
|
|
typedef struct { /* BFORCE ---------------------------------------------------*/
|
|
|
|
|
|
|
|
BFORCE_IN input ; /**< (--) User inputs */
|
|
|
|
BFORCE_OUT output ; /**< (--) User outputs */
|
|
|
|
|
|
|
|
} BFORCE ; /*-----------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#endif
|