14#include "common/can_library/generated/PDU.h"
16#define GPS_SPEED_MOVING 2
17#define MOTOR_COOLING_ENABLE_TEMP 60
18#define MOTOR_COOLING_MAX_TEMP 100
19#define BATT_COOLING_ENABLE_TEMP 30
21#define BATT_PUMP_ON_TEMP_C BATT_COOLING_ENABLE_TEMP
22#define BATT_PUMP_OFF_TEMP_C (BATT_COOLING_ENABLE_TEMP - 2)
23#define BATT_FAN_ON_TEMP_C BATT_COOLING_ENABLE_TEMP
24#define BATT_FAN_OFF_TEMP_C (BATT_COOLING_ENABLE_TEMP - 2)
26#define MOTOR_PUMP_ON_TEMP_C MOTOR_COOLING_ENABLE_TEMP
27#define MOTOR_PUMP_OFF_TEMP_C (MOTOR_COOLING_ENABLE_TEMP - 5)
29#define MOTOR_FAN_ON_TEMP_C MOTOR_COOLING_MAX_TEMP
30#define MOTOR_FAN_OFF_TEMP_C (MOTOR_COOLING_MAX_TEMP - 5)
32#define MOTOR_FAN_STOP_ON_TEMP_C MOTOR_COOLING_ENABLE_TEMP
33#define MOTOR_FAN_STOP_OFF_TEMP_C (MOTOR_COOLING_ENABLE_TEMP - 5)
35#define BANGBANG_MIN_SWITCH_MS 1000
void update_cooling_periodic()
Periodic function that sets switches and fan speeds based off of values in the cooling_request struct...
Definition cooling.c:77
void coolingInit()
Initializes cooling_request struct values to 0.
void cooling_driver_request_CALLBACK(can_data_t *p_can_data)
Callback function for cooling_driver_request message sent from dashboard, updates values in cooling_r...
Definition canpiler.c:79