AP_Scripting: added set_rpm_scale example

This commit is contained in:
Andrew Tridgell 2022-09-01 18:04:56 +10:00
parent 1768149a72
commit 5ad860a22d
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--[[
set scale factor for RPM on some ESCs to allow for different pole count on some ESCs
--]]
-- set ESC 4 (index 3) to 2.0 times reported RPM
esc_telem:set_rpm_scale(3, 2.0)
-- set ESC 6 (index 5) to 2.0 times reported RPM
esc_telem:set_rpm_scale(5, 2.0)
gcs:send_text(0,"Setup motor poles")