UBC-Rocket / WB-DAQ-Firmware

Firmware for Whistler Blackcomb's CAN/DAQ board (WB-AV-4510-CAN).
1 stars 1 forks source link

PID Loop #13

Closed davinbirdi closed 2 years ago

davinbirdi commented 2 years ago

PID Loop about Duty Cycle, with duty cycle offset

Setup to Validate: Version 1:

Potentiometer to imitate varying pressure Duty cycle of Valve PWM based on pressure What We want Version 2:

PID Control of the duty cycle rather than direct control

davinbirdi commented 2 years ago

Version 1 is setup using duty cycle as a function of potentiometer voltage

davinbirdi commented 2 years ago

Issue: Stuttering duty cycle when running both the Actuator Task and the Control Task. we can see it get worse when their periods get closer.

davinbirdi commented 2 years ago

Make sure I don't go outside of duty cycle bounds: