Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <[email protected]>
  • Loading branch information
RomanBapst committed Dec 4, 2024
1 parent b959774 commit ce39a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/fw_pos_control/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ void FixedwingPositionControl::control_backtransition_heading_hold()
true_airspeed = _performance_model.getCalibratedTrimAirspeed() * _eas2tas;
}

// we can achieve heading control by setting airspeed and groundspeed vector equal
const Vector2f airspeed_vector = Vector2f(cosf(_local_pos.heading), sinf(_local_pos.heading)) * true_airspeed;
const Vector2f &ground_speed = airspeed_vector;

Expand Down

0 comments on commit ce39a18

Please sign in to comment.