Skip to content

Commit

Permalink
removing extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Commaremote committed Jun 13, 2018
1 parent 1966bdf commit dbc3568
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions board/safety.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ void update_sample(struct sample_t *sample, int sample_new) {
// real time check, mainly used for steer torque rate limiter
int rt_rate_limit_check(int val, int val_last, const int MAX_RT_DELTA) {

// *** torque real time rate limit check ***
int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA;
int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA;
// *** torque real time rate limit check ***
int16_t highest_val = max(val_last, 0) + MAX_RT_DELTA;
int16_t lowest_val = min(val_last, 0) - MAX_RT_DELTA;

// return 1 if violation
return (val < lowest_val) || (val > highest_val);
// return 1 if violation
return (val < lowest_val) || (val > highest_val);
}

0 comments on commit dbc3568

Please sign in to comment.