Armandpl / skyline

code I wrote to win the 2023 Renault Digital 1/10th roborace

Home Page:https://twitter.com/armand_dpl/status/1670922434445291521

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

improve speed control

Armandpl opened this issue · comments

  • filter measurements
    • try exponential moving average
    • try kalman (what equations to use?)
  • take esc dead zone into account?
  • try higher control freq? like 50Hz
  • get bytes instead of string from arduino
  • change baudrate?
  • use timer instead of time.sleep on the arduino
    • compute instantaneous speed from time between interrupts
    • compute the timeout and threshold from the slowest possible speed of the car

fun fact we control the steering and throttle at 50hz so no reason to go above that; dk if we could control them faster