mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Remove config.c's dependencies on the mw.h/board.h files. Moved some RX
code into rx_common.c. Moved some GPS code into gps_common.c. Isolated some GPS functions into gps_common.c that were called from mw.c/loop(). moved gimbal defines into gimbal.h. Moved sound & light code into statusindicator.c
This commit is contained in:
parent
8477b45061
commit
a85bfa51e3
20 changed files with 232 additions and 166 deletions
|
@ -171,12 +171,12 @@ const clivalue_t valueTable[] = {
|
|||
{ "alt_hold_fast_change", VAR_UINT8, &cfg.alt_hold_fast_change, 0, 1 },
|
||||
{ "throttle_correction_value", VAR_UINT8, &cfg.throttle_correction_value, 0, 150 },
|
||||
{ "throttle_correction_angle", VAR_UINT16, &cfg.throttle_correction_angle, 1, 900 },
|
||||
{ "rc_rate", VAR_UINT8, &cfg.rcRate8, 0, 250 },
|
||||
{ "rc_expo", VAR_UINT8, &cfg.rcExpo8, 0, 100 },
|
||||
{ "thr_mid", VAR_UINT8, &cfg.thrMid8, 0, 100 },
|
||||
{ "thr_expo", VAR_UINT8, &cfg.thrExpo8, 0, 100 },
|
||||
{ "roll_pitch_rate", VAR_UINT8, &cfg.rollPitchRate, 0, 100 },
|
||||
{ "yawrate", VAR_UINT8, &cfg.yawRate, 0, 100 },
|
||||
{ "rc_rate", VAR_UINT8, &cfg.controlRateConfig.rcRate8, 0, 250 },
|
||||
{ "rc_expo", VAR_UINT8, &cfg.controlRateConfig.rcExpo8, 0, 100 },
|
||||
{ "thr_mid", VAR_UINT8, &cfg.controlRateConfig.thrMid8, 0, 100 },
|
||||
{ "thr_expo", VAR_UINT8, &cfg.controlRateConfig.thrExpo8, 0, 100 },
|
||||
{ "roll_pitch_rate", VAR_UINT8, &cfg.controlRateConfig.rollPitchRate, 0, 100 },
|
||||
{ "yawrate", VAR_UINT8, &cfg.controlRateConfig.yawRate, 0, 100 },
|
||||
{ "tparate", VAR_UINT8, &cfg.dynThrPID, 0, 100},
|
||||
{ "tpa_breakpoint", VAR_UINT16, &cfg.tpaBreakPoint, 1000, 2000},
|
||||
{ "failsafe_delay", VAR_UINT8, &cfg.failsafe_delay, 0, 200 },
|
||||
|
@ -731,7 +731,7 @@ static void cliMap(char *cmdline)
|
|||
cliPrint("Must be any order of AETR1234\r\n");
|
||||
return;
|
||||
}
|
||||
parseRcChannels(cmdline);
|
||||
parseRcChannels(cmdline, &mcfg.rxConfig);
|
||||
}
|
||||
cliPrint("Current assignment: ");
|
||||
for (i = 0; i < 8; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue