diff --git a/sw/airborne/firmwares/fixedwing/main_fbw.c b/sw/airborne/firmwares/fixedwing/main_fbw.c index 40dcf65a58..7989e57433 100644 --- a/sw/airborne/firmwares/fixedwing/main_fbw.c +++ b/sw/airborne/firmwares/fixedwing/main_fbw.c @@ -48,11 +48,6 @@ #include "link_mcu.h" #endif -#ifdef MILLIAMP_PER_PERCENT -#error "deprecated MILLIAMP_PER_PERCENT --> Please use MILLIAMP_AT_FULL_THROTTLE" -#endif - - uint8_t fbw_mode; #include "inter_mcu.h" diff --git a/sw/airborne/subsystems/electrical.c b/sw/airborne/subsystems/electrical.c index 4694df4e89..c9986928c1 100644 --- a/sw/airborne/subsystems/electrical.c +++ b/sw/airborne/subsystems/electrical.c @@ -6,6 +6,13 @@ #include "generated/airframe.h" #include BOARD_CONFIG +#ifdef MILLIAMP_PER_PERCENT +#warning "deprecated MILLIAMP_PER_PERCENT --> Please use MILLIAMP_AT_FULL_THROTTLE" +#endif +#if defined BATTERY_SENS || defined BATTERY_OFFSET +#warning "BATTERY_SENS and BATTERY_OFFSET are deprecated, please remove them --> if you want to change the default use VoltageOfAdc" +#endif + struct Electrical electrical; static struct {