mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
always warn about deprecated/unused bat defines
This commit is contained in:
@@ -48,11 +48,6 @@
|
|||||||
#include "link_mcu.h"
|
#include "link_mcu.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MILLIAMP_PER_PERCENT
|
|
||||||
#error "deprecated MILLIAMP_PER_PERCENT --> Please use MILLIAMP_AT_FULL_THROTTLE"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
uint8_t fbw_mode;
|
uint8_t fbw_mode;
|
||||||
|
|
||||||
#include "inter_mcu.h"
|
#include "inter_mcu.h"
|
||||||
|
|||||||
@@ -6,6 +6,13 @@
|
|||||||
#include "generated/airframe.h"
|
#include "generated/airframe.h"
|
||||||
#include BOARD_CONFIG
|
#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;
|
struct Electrical electrical;
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user