AP_Scripting: add example script setting up a custom MotorMatrix

This commit is contained in:
Iampete1 2021-01-26 00:11:28 +00:00 committed by Randy Mackay
parent 643966fb3e
commit ebfe593e38

View File

@ -0,0 +1,9 @@
-- This script is an example setting up a custom motor matrix mix
-- duplicate the standard + Quad mix
MotorsMatrix:add_motor_raw(0,-1, 0, 1, 2)
MotorsMatrix:add_motor_raw(1, 1, 0, 1, 4)
MotorsMatrix:add_motor_raw(2, 0, 1,-1, 1)
MotorsMatrix:add_motor_raw(3, 0,-1,-1, 3)
assert(MotorsMatrix:init(4), "Failed to init MotorsMatrix")