AP_Motors: fix comment of HeliQuad

This commit is contained in:
TsuyoshiKawamura 2024-03-08 18:21:49 +09:00 committed by Randy Mackay
parent fba1e68ef4
commit a2549c5d6b
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ void AP_MotorsHeli_Quad::calculate_scalars()
void AP_MotorsHeli_Quad::calculate_roll_pitch_collective_factors()
{
// assume X quad layout, with motors at 45, 135, 225 and 315 degrees
// order FrontRight, RearLeft, FrontLeft, RearLeft
// order FrontRight, RearLeft, FrontLeft, RearRight
const float angles[AP_MOTORS_HELI_QUAD_NUM_MOTORS] = { 45, 225, 315, 135 };
const bool x_clockwise[AP_MOTORS_HELI_QUAD_NUM_MOTORS] = { false, false, true, true };
const float cos45 = cosf(radians(45));