mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Fix rc_controls_unittest to use midrc.
This commit is contained in:
parent
b0b83b31db
commit
02c93f1c1a
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,7 @@ TEST(RcControlsTest, processRcAdjustmentsSticksInMiddle)
|
||||||
memset(&rxConfig, 0, sizeof (rxConfig));
|
memset(&rxConfig, 0, sizeof (rxConfig));
|
||||||
rxConfig.mincheck = DEFAULT_MIN_CHECK;
|
rxConfig.mincheck = DEFAULT_MIN_CHECK;
|
||||||
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
|
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
|
||||||
|
rxConfig.midrc = 1500;
|
||||||
|
|
||||||
// and
|
// and
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
|
@ -238,6 +239,7 @@ TEST(RcControlsTest, processRcAdjustmentsWithRcRateFunctionSwitchUp)
|
||||||
memset(&rxConfig, 0, sizeof (rxConfig));
|
memset(&rxConfig, 0, sizeof (rxConfig));
|
||||||
rxConfig.mincheck = DEFAULT_MIN_CHECK;
|
rxConfig.mincheck = DEFAULT_MIN_CHECK;
|
||||||
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
|
rxConfig.maxcheck = DEFAULT_MAX_CHECK;
|
||||||
|
rxConfig.midrc = 1500;
|
||||||
|
|
||||||
// and
|
// and
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue