Quote:
Originally Posted by apowers
I am thinking about adding a second contacter. I have the unified 16k firmware . The chip is an M 8. Will this operate the second contacter?
This is to make it easier for someone else to drive the vehicle. Could someone get in and turn the key on , and between the time the key is switched and the second contacter is switched place their foot on the accelerator and cause a problem ? Did that make any sense?
|
My reading of the Cougar source code has the HPL / High Pedal Lockout check being done independently of the PRECHARGE_WAIT / contactor timeout. Someone that doesn't understand the delay, or just counted wrong, could have the contactor close and the controller immediately start to ramp up power.
It could be argued that this might be a safety problem. It would be trivial
to change the behavior by reordering the checks and making clearing them a sequential condition.
if (fault_bits & HPL_FAULT) {
.... /* Clear fault if the throttle pedal is released. */
}
if (fault_bits & PRECHARGE_WAIT) {
.... /* Clear fault after the timeout. */
}
------------
if (fault_bits & PRECHARGE_WAIT) {
.... /* Clear fault after the timeout. */
} else if (fault_bits & HPL_FAULT) {
.... /* Clear fault if the throttle pedal is released. */
}