altos: Switch all tick variables to AO_TICK_TYPE/AO_TICK_SIGNED
[fw/altos] / src / easymotor-v2 / ao_pins.h
index 6ea08e1a13ee7080a57aa368955b97746e18c18b..0fa037b3b73dfe5866c3d393847d384e14d70249 100644 (file)
@@ -53,7 +53,7 @@
 #define SERIAL_3_PC10_PC11     0
 #define SERIAL_3_PD8_PD9       0
 
-#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       (512 * 1024)
+#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       (1984 * 1024)
 #define AO_CONFIG_MAX_SIZE                     1024
 #define LOG_ERASE_MARK                         0x55
 #define LOG_MAX_ERASE                          128
 #define AO_DATA_RING           64
 
 struct ao_adc {
-       int16_t                 pressure;
+       int16_t                 motor_pressure;
        int16_t                 v_batt;
 };
 
 #define AO_ADC_DUMP(p) \
-       printf("tick: %5pressure: %5d batt: %5d\n", \
+       printf("tick: %5lu motor_pressure: %5d batt: %5d\n", \
               (p)->tick, \
-              (p)->adc.pressure, \
+              (p)->adc.motor_pressure, \
               (p)->adc.v_batt);
 
 
@@ -162,4 +162,10 @@ struct ao_adc {
 #define HAS_IMU                        1
 #define USE_ADXL375_IMU                1
 
+/* Motor pressure */
+#define HAS_MOTOR_PRESSURE     1
+#define ao_data_motor_pressure(packet) ((packet)->adc.motor_pressure)
+
+typedef int16_t        motor_pressure_t;
+
 #endif /* _AO_PINS_H_ */