From 1a2ea893b641f8933e1c029f44d9f3e9f5fe1e27 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 12 Sep 2021 13:01:42 +0100 Subject: [PATCH] AP_MotorsMatrix: correct octo I testing order --- libraries/AP_Motors/AP_MotorsMatrix.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsMatrix.cpp b/libraries/AP_Motors/AP_MotorsMatrix.cpp index fd60b08ce0..4c5eebd238 100644 --- a/libraries/AP_Motors/AP_MotorsMatrix.cpp +++ b/libraries/AP_Motors/AP_MotorsMatrix.cpp @@ -919,14 +919,14 @@ void AP_MotorsMatrix::setup_motors(motor_frame_class frame_class, motor_frame_ty case MOTOR_FRAME_TYPE_I: { _frame_type_string = "I"; static const AP_MotorsMatrix::MotorDefRaw motors[] { - { 0.333f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 1 }, - { -0.333f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 5 }, - { 1.0f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 2 }, - { 0.333f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 4 }, - { -0.333f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 8 }, - { -1.0f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 6 }, - { -1.0f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 7 }, - { 1.0f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 3 }, + { 0.333f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 5 }, + { -0.333f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 1 }, + { 1.0f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 6 }, + { 0.333f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 8 }, + { -0.333f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 4 }, + { -1.0f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 2 }, + { -1.0f, -1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 3 }, + { 1.0f, 1.0f, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 7 }, }; add_motors_raw(motors, ARRAY_SIZE(motors)); break;