In this repository you will find all the code required to control the shifting logic for the 2015-2016 CSUN Formula SAE car. The car featured pneumatic cylinders to control both clutching and shifting actions. This logic was created to automate the shifting process as follows:
- Upshift - Only the shift cylinder is actuated. The ignition cut is a function of ECU.
- Downshift - Clutch cylinder is actuated to pull the clutch in, shift cylinder is actuated to execute the shift, and clutch is let back out.
- E-clutch - When the E-clutch is engaged, the shifter functions without automation.
The system uses a Raspberry Pi 2 Model B running a Linux shell script to start the program on boot up. The high level code flow is as follows:
- The program connects to and initializes both the I/O and relay board.
- It listens for inputs from the I/O board. Those inputs can be upshift, downshift, or E-clutch buttons.
- Depending on the input, the corresponding shifting function is called.
- The function tells the relay board to execute its respective shift function.
Note : Auto blipping was not a functionality on this car. The driver is relied upon to rev match during down shifting.