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
1 changed files with 15 additions and 0 deletions

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);