mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
always warn about deprecated/unused bat defines
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user