Fix rc_controls_unittest to use midrc.

This commit is contained in:
Dominic Clifton 2014-10-24 14:57:46 +01:00
parent b0b83b31db
commit 02c93f1c1a
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,7 @@ TEST(RcControlsTest, processRcAdjustmentsSticksInMiddle)
memset(&rxConfig, 0, sizeof (rxConfig));
rxConfig.mincheck = DEFAULT_MIN_CHECK;
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
rxConfig.midrc = 1500;
// and
uint8_t index;
@ -238,6 +239,7 @@ TEST(RcControlsTest, processRcAdjustmentsWithRcRateFunctionSwitchUp)
memset(&rxConfig, 0, sizeof (rxConfig));
rxConfig.mincheck = DEFAULT_MIN_CHECK;
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
rxConfig.midrc = 1500;
// and
uint8_t index;