Skip to content

Commit

Permalink
maghold activatipon bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Nov 1, 2016
1 parent f45521c commit 1b8c11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void updateMagHoldHeading(int16_t heading)
void resetMagHoldHeading(int16_t heading)
{
updateMagHoldHeading(heading);
pt1FilterReset(&magHoldRateFilter, (float) heading);
pt1FilterReset(&magHoldRateFilter, 0.0f);
}

int16_t getMagHoldHeading() {
Expand Down

0 comments on commit 1b8c11d

Please sign in to comment.