add stupid test flag to use infrared i2c in sim

This commit is contained in:
Gautier Hattenberger
2010-08-31 16:32:26 +00:00
parent 40549fcf6b
commit f02c3fa947
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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) ;
+1 -1
View File
@@ -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);