TLDR Web Dev · ARTICLES & TUTORIALS
MY VERY FIRST PRODUCTION BUG
Summary from the TLDR Web Dev newsletter
A developer working on an autonomous driving system encountered an issue where a new, faster camera made the tracking system worse. The root cause was a preprocessor directive for the framerate, which was mistakenly defined as an integer and not a floating-point number due to a missing decimal point. This caused the sampling time to be calculated as zero, leading to incorrect position predictions by the Kalman filter.