1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Update battery_unittest.cc

additions for feature and calculateThrottleStatus
This commit is contained in:
Jenny 2015-03-16 15:03:46 +00:00
parent 3160677e1c
commit 1ff8c177ce

View file

@ -22,6 +22,8 @@
extern "C" {
#include "sensors/battery.h"
#include "io/rc_controls.h"
}
#include "unittest_macros.h"
@ -88,6 +90,19 @@ extern "C" {
uint8_t armingFlags = 0;
int16_t rcCommand[4] = {0,0,0,0};
bool feature(uint32_t mask)
{
UNUSED(mask);
return false;
}
throttleStatus_e calculateThrottleStatus(rxConfig_t *rxConfig, uint16_t deadband3d_throttle)
{
UNUSED(*rxConfig);
UNUSED(deadband3d_throttle);
return THROTTLE_HIGH;
}
uint16_t adcGetChannel(uint8_t channel)
{
UNUSED(channel);