una-auxme / paf

MIT License
6 stars 0 forks source link

[Feature]: Further tuning and testing of VelocityController's PID #135

Closed hellschwalex closed 9 months ago

hellschwalex commented 10 months ago

Description

-> From here we need to implement braking first to actually test dropping from a higher to a lower target velocity. So #136 first before continuing.

Definition of Done

hellschwalex commented 10 months ago

PID is now tuned around workingpoint of 50km/h (14m/s) without overshooting (yippie) and nearly perfect driving at target velocity. Maximum error (after reaching 14m/s) is 0.05 m/s which are 0.18 km/h. newPID

hellschwalex commented 10 months ago

Tested new PID on different target velocities and got following results. Since the PID controller is linearised around 50km/h while the vehicle's velocity obviously is not linear, the results will always be imperfect the further you are from the working point. In this case the newly tuned PID controller seems more than good enough for all velocities we may drive:

hellschwalex commented 10 months ago

With braking controller now implemented, this issue will be finished soon aswell. Testing the whole of velocity control (throttle+braking) now on alternating velocities, and linearly changing ones.