News for hackers. Stuff that matters.
Re:My Very First Production Bug by 01HNNWZ0MV43FF on Thursday June 13, 2024 @01:50AM (#40666332)
That code looks weird to me either way. You end up with a strange float. I represent framerates as rational numbers, e.g. 60/1. It works great for ffmpeg.
Re:My Very First Production Bug by niborgen on Thursday June 13, 2024 @04:29AM (#40667249)
The Kalman filter code does need floats, though. So here we did indeed need a conversion.
Re:My Very First Production Bug by 01HNNWZ0MV43FF on Sunday June 16, 2024 @01:39PM (#40698749)
Sure. I haven't looked at the code so I could easily be off base but, even with floats I want to delay that divide for as long as possible