mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 17:49:49 +08:00
add stupid test flag to use infrared i2c in sim
This commit is contained in:
@@ -45,6 +45,8 @@
|
||||
#include "messages.h"
|
||||
#include "periodic.h"
|
||||
|
||||
//#include "modules.h"
|
||||
|
||||
#if defined DOWNLINK
|
||||
#define Downlink(x) x
|
||||
#else
|
||||
@@ -100,7 +102,7 @@
|
||||
#define PERIODIC_SEND_SETTINGS(_chan) {}
|
||||
#endif
|
||||
|
||||
#ifdef INFRARED
|
||||
#if defined INFRARED || INFRARED_I2C
|
||||
#define PERIODIC_SEND_IR_SENSORS(_chan) DOWNLINK_SEND_IR_SENSORS(_chan, &ir_ir1, &ir_ir2, &ir_pitch, &ir_roll, &ir_top);
|
||||
#else
|
||||
#define PERIODIC_SEND_IR_SENSORS(_chan) ;
|
||||
|
||||
@@ -21,7 +21,7 @@ value set_ir(value roll __attribute__ ((unused)),
|
||||
value top __attribute__ ((unused)),
|
||||
value air_speed
|
||||
) {
|
||||
#ifdef INFRARED
|
||||
#if defined INFRARED || INFRARED_I2C
|
||||
ir_roll = Int_val(roll);
|
||||
ir_pitch = Int_val(front);
|
||||
ir_top = Int_val(top);
|
||||
|
||||
Reference in New Issue
Block a user