X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Feasymotor-v2%2Fao_pins.h;h=097ecb4551fad8c432d0c9b0b5d34555bf073fd6;hb=c6de071bcfca217a28d94255339b2f5e09d05fa5;hp=6ea08e1a13ee7080a57aa368955b97746e18c18b;hpb=01b89c384e80990505a5abea18489360052beb70;p=fw%2Faltos diff --git a/src/easymotor-v2/ao_pins.h b/src/easymotor-v2/ao_pins.h index 6ea08e1a..097ecb45 100644 --- a/src/easymotor-v2/ao_pins.h +++ b/src/easymotor-v2/ao_pins.h @@ -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 @@ -104,14 +104,14 @@ #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: %5u pressure: %5d batt: %5d\n", \ + printf("tick: %5u 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_ */