CornellDataScience / self-driving-car

This is a multi-year project undertaken by the Cornell Data Science team intended to demonstrate autopilot for a full-size car.
MIT License
3 stars 0 forks source link

Timed Main Control Loop #3

Open shihaocao opened 3 years ago

shihaocao commented 3 years ago

Problem:

On This Ticket:

This is so that the TimerEnforcer will sleep for as long as it needs to for the entire MainControlLoop to take exactly "target_control_cycle_duration" time.

shihaocao commented 3 years ago

Say the config file specifies the control cycle duration to be 100ms. We should sleep if the executed main control loop so far has not yet hit 100ms.

shihaocao commented 3 years ago

Once the feature works, create a TestInstance to verify that we are hitting the target control cycle time.

ezh20 commented 2 years ago
Screen Shot 2021-11-13 at 4 27 32 PM
ezh20 commented 2 years ago

need to delete some useless code then done