removed motor temp offset and fixed bug in 60D header

This commit is contained in:
Jeffrey M. Friesen 2020-07-27 10:56:01 -07:00
parent 7e212b58d4
commit 75f9b1cdd0
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@
#define V_REG 3.3 #define V_REG 3.3
#endif #endif
#ifndef VIN_R1 #ifndef VIN_R1
#define VIN_R1 68000.0 #define VIN_R1 39000.0
#endif #endif
#ifndef VIN_R2 #ifndef VIN_R2
#define VIN_R2 2200.0 #define VIN_R2 2200.0

View File

@ -1922,7 +1922,7 @@ static void update_override_limits(volatile motor_if_state_t *motor, volatile mc
float lo_max_mot = l_current_max_tmp; float lo_max_mot = l_current_max_tmp;
if (motor->m_temp_motor < conf->l_temp_motor_start) { if (motor->m_temp_motor < conf->l_temp_motor_start) {
// Keep values // Keep values
} else if (motor->m_temp_motor > (conf->l_temp_motor_end + 10.0)) { // only fault if 10 degrees over max do give some cushion for noisey sensors } else if (motor->m_temp_motor > conf->l_temp_motor_end) { // only fault if 10 degrees over max do give some cushion for noisey sensors
lo_min_mot = 0.0; lo_min_mot = 0.0;
lo_max_mot = 0.0; lo_max_mot = 0.0;
mc_interface_fault_stop(FAULT_CODE_OVER_TEMP_MOTOR, !is_motor_1, false); mc_interface_fault_stop(FAULT_CODE_OVER_TEMP_MOTOR, !is_motor_1, false);