mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 05:17:03 +08:00
new macro to set rc values in command laws (#2240)
This commit is contained in:
committed by
Gautier Hattenberger
parent
cd659a78da
commit
319c69b9c9
@@ -8,6 +8,8 @@
|
||||
|
||||
<firmware name="rotorcraft">
|
||||
<target name="ap" board="chimera_1.0">
|
||||
<configure name="PERIODIC_FREQUENCY" value="500"/>
|
||||
|
||||
<module name="radio_control" type="sbus">
|
||||
<!-- Put the mode on channel AUX1-->
|
||||
<define name="RADIO_KILL_SWITCH" value="RADIO_GAIN1"/>
|
||||
|
||||
@@ -49,6 +49,9 @@ extern void radio_control_impl_init(void);
|
||||
#define RC_LOST 1
|
||||
#define RC_REALLY_LOST 2
|
||||
|
||||
/* macro that can be used in the command laws */
|
||||
#define RCValue(_x) radio_control.values[_x]
|
||||
|
||||
struct RadioControl {
|
||||
uint8_t status;
|
||||
uint8_t time_since_last_frame;
|
||||
|
||||
Reference in New Issue
Block a user