Skip to content

Commit

Permalink
feat(current): change current minimum threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonidotpy committed Mar 8, 2024
1 parent 564f63d commit b8047b9
Show file tree
Hide file tree
Showing 6 changed files with 1,322 additions and 1,322 deletions.
2 changes: 1 addition & 1 deletion mainboard/Inc/pack/current.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define CURRENT_SENSOR_DISCONNECTED_THRESHOLD 0.25 // V

/** @brief Current limits in A */
#define CURRENT_MIN_THRESHOLD -24.f
#define CURRENT_MIN_THRESHOLD -20.f
#define CURRENT_MAX_THRESHOLD 180.f

enum CURRENT_SENSORS {
Expand Down
2 changes: 1 addition & 1 deletion mainboard/Src/pack/current.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ void current_check_errors() {

// Hall effect sensor disconnected
error_toggle_check(volt_300 < CURRENT_SENSOR_DISCONNECTED_THRESHOLD, ERROR_CONNECTOR_DISCONNECTED, 1);
}
}

0 comments on commit b8047b9

Please sign in to comment.