Added support for both NO and NC clutch switch on launch

In many car designs a NC clutch switch acts as NO switch because the pressure plate is forcing the switch open when clutch is released and vise versa for a NO clutch switch.  But in almost all designs I've seen they are always grounding.  A hot switching option may be added later for exceptions to that design standard.
This commit is contained in:
ConnerMcLaughlin 2016-09-25 13:32:12 -05:00 committed by GitHub
parent bbb4d907ed
commit 57f2a08e26
1 changed files with 3 additions and 2 deletions

View File

@ -362,8 +362,9 @@ void setPinMapping(byte boardID)
pinMode(pinTrigger2, INPUT);
pinMode(pinTrigger3, INPUT);
pinMode(pinFlex, INPUT_PULLUP); //Standard GM / Continental flex sensor requires pullup
if (configPage3.launchHiLo) { pinMode(pinLaunch, INPUT); }
else { pinMode(pinLaunch, INPUT_PULLUP); } //If launch triggers on LOW signal, then set a pull up as the default
pinMode(pinLaunch, INPUT_PULLUP); //This should work for both NO and NC grounding switches
// if (configPage3.launchHiLo) { pinMode(pinLaunch, INPUT); }
// else { pinMode(pinLaunch, INPUT_PULLUP); } //If launch triggers on LOW signal, then set a pull up as the default
//Set default values
digitalWrite(pinMAP, HIGH);