Skip to content

Commit

Permalink
fan: reset error integral when disabled (commaai#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Oct 27, 2022
1 parent bd8d248 commit 609a8e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions board/drivers/fan.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void fan_tick(void){
}
} else {
fan_state.stall_counter = 0U;
fan_state.error_integral = 0.0f;
}

// Update controller
Expand Down

0 comments on commit 609a8e0

Please sign in to comment.