Skip to content

Commit

Permalink
Wind heading estimate gets into resonance
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoudSmeur committed Sep 23, 2016
1 parent 5101afc commit 643b971
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/airborne/firmwares/rotorcraft/guidance/guidance_h.c
Expand Up @@ -848,9 +848,9 @@ void change_heading_in_wind(void) {

// The wind heading can be set manually
// TODO: use the function find_wind_heading instead
//wind_heading = RadOfDeg(wind_heading_deg);
struct FloatQuat *current_quat = stateGetNedToBodyQuat_f();
find_wind_heading(current_quat);
wind_heading = RadOfDeg(wind_heading_deg);
//struct FloatQuat *current_quat = stateGetNedToBodyQuat_f();
//find_wind_heading(current_quat);
FLOAT_ANGLE_NORMALIZE(wind_heading);

// There are two possible ways to fly sideways into the wind
Expand Down

0 comments on commit 643b971

Please sign in to comment.