print an error if IR_HORIZ_SENSOR_[ALIGNED|TILTED] is not defined

This commit is contained in:
Felix Ruess
2011-11-24 17:47:22 +01:00
parent 7e9704edd0
commit 9c36a79c8d
@@ -54,6 +54,8 @@
*/ */
#define IR_RollOfIrs(_ir1, _ir2) (_ir1 + _ir2) #define IR_RollOfIrs(_ir1, _ir2) (_ir1 + _ir2)
#define IR_PitchOfIrs(_ir1, _ir2) (-(_ir1) + _ir2) #define IR_PitchOfIrs(_ir1, _ir2) (-(_ir1) + _ir2)
#else
#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 */ /* Vertical sensor, TOP_SIGN gives positice values when it's warm on the bottom */
#ifndef IR_TopOfIr #ifndef IR_TopOfIr