added default values for IR_ROLL_NEUTRAL_DEFAULT and IR_PITCH_NEUTRAL_DEFAULT in infrared.h if not already defined (in the airframe file)

This commit is contained in:
Felix Ruess
2011-10-04 21:04:13 +02:00
parent 883ac3e89b
commit b386d33e09
+12
View File
@@ -92,6 +92,18 @@
#define IR_CORRECTION_DOWN 1.
#endif
/*
* Default neutral values
*/
#ifndef IR_ROLL_NEUTRAL_DEFAULT
#define IR_ROLL_NEUTRAL_DEFAULT 0.0
#endif
#ifndef IR_PITCH_NEUTRAL_DEFAULT
#define IR_PITCH_NEUTRAL_DEFAULT 0.0
#endif
struct Infrared_raw {
/* the 3 channels of the sensor
*/