29 #define RADIO_CONTROL_DT (1./40.)
78 #define RADIO_CONTROL_TAKEOFF_TIME 8
static void radio_control_script_step_roll(double time)
void nps_radio_control_init(enum NpsRadioControlType type, int num_script, char *js_dev)
static void radio_control_script_step_yaw(double time)
static void radio_control_script_hover(double time)
static void radio_control_script_step_pitch(double time)
static void radio_control_script_takeoff(double time)
bool nps_radio_control_available(double time)
#define RADIO_CONTROL_TAKEOFF_TIME
static void radio_control_script_ff(double time)
static rc_script scripts[]
void(* rc_script)(double)
struct NpsRadioControl nps_radio_control
#define MODE_SWITCH_MANUAL
#define MODE_SWITCH_AUTO2
enum NpsRadioControlType type
void nps_radio_control_joystick_update(void)
Updates joystick buttons from events, directly reads current axis positions.
struct NpsJoystick nps_joystick
int nps_radio_control_joystick_init(const char *device)
Initializes SDL and the joystick.
int nps_radio_control_spektrum_init(const char *device)
int int32_t
Typedef defining 32 bit int type.