X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fkernel%2Fao_sample.h;h=ad7c50eff49081aa4050b9da9f49a87dde4047a2;hp=475b3f6326ef8fc57301fcf1172c0310a14d262b;hb=7f46240dfc57164f0c1b0c4c4ed9695bca63860d;hpb=4370b7e7bc48d3f3f3ec94665449f1fde4e9567c diff --git a/src/kernel/ao_sample.h b/src/kernel/ao_sample.h index 475b3f63..ad7c50ef 100644 --- a/src/kernel/ao_sample.h +++ b/src/kernel/ao_sample.h @@ -115,7 +115,7 @@ typedef int16_t ao_v_t; #define AO_MS_TO_SPEED(ms) ((ao_v_t) ((ms) * 16)) #define AO_MSS_TO_ACCEL(mss) ((ao_v_t) ((mss) * 16)) -extern uint16_t ao_sample_tick; /* time of last data */ +extern AO_TICK_TYPE ao_sample_tick; /* time of last data */ extern uint8_t ao_sample_adc; /* Ring position of last processed sample */ extern uint8_t ao_sample_data; /* Ring position of last processed sample */ @@ -156,6 +156,10 @@ extern angle_t ao_sample_orient; extern angle_t ao_sample_orients[AO_NUM_ORIENT]; extern uint8_t ao_sample_orient_pos; #endif +#if HAS_MOTOR_PRESSURE +extern motor_pressure_t ao_ground_motor_pressure; +extern motor_pressure_t ao_sample_motor_pressure; +#endif void ao_sample_init(void);