VTOL: add parameter to set the PWM_OUTPUT_DEVICE_PATH (#14732)

The device path is needed to apply PWM limits on the motors that are not
used for FW flight (switch them off). With this parameter the device path can be set
to either IO or FMU, depending on whether the motors are on the IO or FMU port.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2020-04-22 20:42:23 +02:00
committed by GitHub
parent d29344cb9c
commit 172e435ec0
6 changed files with 21 additions and 1 deletions
+1
View File
@@ -61,6 +61,7 @@ __BEGIN_DECLS
*/
#define PWM_OUTPUT_BASE_DEVICE_PATH "/dev/pwm_output"
#define PWM_OUTPUT0_DEVICE_PATH "/dev/pwm_output0"
#define PWM_OUTPUT1_DEVICE_PATH "/dev/pwm_output1"
#define PWM_OUTPUT_MAX_CHANNELS 16