Open nwdepatie opened 1 month ago
Currently we have the different drive states enumerated in the switch statement in torque.c. We can just modify the function that converts pedal percentage pressed to torque
We want to use the DTI's measure of motor speed to limit our top speed in these modes. This is essentially just implementing a PI controller. I think we actually have a PID controller implementation in Embedded_Base that someone made a while ago, but it is kinda unverified https://github.com/Northeastern-Electric-Racing/Embedded-Base/blob/main/middleware/src/pid.c
No response
Check here for last year's implementation https://github.com/Northeastern-Electric-Racing/Embedded_Code/blob/main/MPU/src/pedals.cpp
Current Features
Currently we have the different drive states enumerated in the switch statement in torque.c. We can just modify the function that converts pedal percentage pressed to torque
Desired Additional Features
We want to use the DTI's measure of motor speed to limit our top speed in these modes. This is essentially just implementing a PI controller. I think we actually have a PID controller implementation in Embedded_Base that someone made a while ago, but it is kinda unverified https://github.com/Northeastern-Electric-Racing/Embedded-Base/blob/main/middleware/src/pid.c
Screenshots (as needed)
No response