mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
dshot: sync with fmu module
This commit is contained in:
@@ -1255,6 +1255,9 @@ DShotOutput::module_new_mode(PortMode new_mode)
|
|||||||
/* select 4-pin PWM mode */
|
/* select 4-pin PWM mode */
|
||||||
mode = DShotOutput::MODE_4PWM;
|
mode = DShotOutput::MODE_4PWM;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM == 5
|
||||||
|
mode = DShotOutput::MODE_5PWM;
|
||||||
|
#endif
|
||||||
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM == 6
|
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM == 6
|
||||||
mode = DShotOutput::MODE_6PWM;
|
mode = DShotOutput::MODE_6PWM;
|
||||||
#endif
|
#endif
|
||||||
@@ -1474,6 +1477,9 @@ int DShotOutput::custom_command(int argc, char *argv[])
|
|||||||
} else if (!strcmp(verb, "mode_pwm6")) {
|
} else if (!strcmp(verb, "mode_pwm6")) {
|
||||||
new_mode = PORT_PWM6;
|
new_mode = PORT_PWM6;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 5
|
||||||
|
|
||||||
} else if (!strcmp(verb, "mode_pwm5")) {
|
} else if (!strcmp(verb, "mode_pwm5")) {
|
||||||
new_mode = PORT_PWM5;
|
new_mode = PORT_PWM5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user