fix sitl with stupid ir simulation

This commit is contained in:
Felix Ruess
2011-11-24 19:18:38 +01:00
parent 9c36a79c8d
commit 22a3b9496d
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -17,7 +17,6 @@
#include "subsystems/nav.h"
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
#include "firmwares/fixedwing/guidance/guidance_v.h"
#include "subsystems/sensors/infrared.h"
#include "commands.h"
#include "firmwares/fixedwing/main_ap.h"
#include "ap_downlink.h"
@@ -55,8 +55,10 @@
#define IR_RollOfIrs(_ir1, _ir2) (_ir1 + _ir2)
#define IR_PitchOfIrs(_ir1, _ir2) (-(_ir1) + _ir2)
#else
#ifndef SITL
#error "You have to define either HORIZ_SENSOR_ALIGNED or HORIZ_SENSOR_TILTED in the IR section"
#endif
#endif
/* Vertical sensor, TOP_SIGN gives positice values when it's warm on the bottom */
#ifndef IR_TopOfIr
#define IR_TopOfIr(_ir) (_ir)