27#ifndef AUTOPILOT_RC_HELPERS_H 
   28#define AUTOPILOT_RC_HELPERS_H 
   30#include "generated/airframe.h" 
   44  if (pos >= max) 
return false;
 
 
   55#define RCMode0() rc_mode_switch(RADIO_MODE, 0, 3) 
   56#define RCMode1() rc_mode_switch(RADIO_MODE, 1, 3) 
   57#define RCMode2() rc_mode_switch(RADIO_MODE, 2, 3) 
static bool rc_mode_switch(uint8_t chan, uint8_t pos, uint8_t max)
RC mode switch position helper switch positions threshold are evenly spaced.
struct RadioControl radio_control
Generic interface for radio control modules.
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.