Make PWM_RATE configurable via QGroundControl

This commit is contained in:
Anton Matosov
2016-11-15 00:16:31 -08:00
committed by Lorenz Meier
parent 81dc20ea86
commit 4edd12c44a
4 changed files with 62 additions and 42 deletions
+18
View File
@@ -3134,6 +3134,24 @@ PARAM_DEFINE_INT32(SENS_EN_TRONE, 0);
*/
PARAM_DEFINE_INT32(SENS_EN_SF1XX, 0);
/**
* Set the PWM output frequency for the MAIN outputs
*
* IMPORTANT: CHANGING THIS PARAMETER REQUIRES A COMPLETE SYSTEM
* REBOOT IN ORDER TO APPLY THE CHANGES. COMPLETELY POWER-CYCLE
* THE SYSTEM TO PUT CHANGES INTO EFFECT.
*
* Set to 400 for industry default or 1000 for high frequency ESCs.
*
* @reboot_required true
*
* @min -1
* @max 2000
* @unit Hz
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_RATE, 400);
/**
* Set the minimum PWM for the MAIN outputs
*
+1
View File
@@ -750,6 +750,7 @@ Sensors::Sensors() :
(void)param_find("SYS_PARAM_VER");
(void)param_find("SYS_AUTOSTART");
(void)param_find("SYS_AUTOCONFIG");
(void)param_find("PWM_RATE");
(void)param_find("PWM_MIN");
(void)param_find("PWM_MAX");
(void)param_find("PWM_DISARMED");