Elektrine lite

← Feed

@solomonschuler@noc.social

Post #2044171

2026-04-05 03:37 UTC

As much as I hate generative AI I do love for one thing: finding really hidden fuck ups in my code. For example, I've made an optimized function to make my robot move in a straight line, and for some reason my right motor was moving faster than the left despite my quadrature reading on left being much less than that on the right. #genai #embeddedsystems #C

Replies (1)

  • @solomonschuler@noc.social 2026-04-05 03:43

    Do you want to know what my fuck up was? In my function definition I've defined the duty cycle parameters as move_motor_with_pwm(duty_cycle_L, duty_cycle_R) but when declaring the function I put them the other way around. IVE SPENT 3 FUCKING HOURS SEARCHING FOR THE ISSUE! And it was changing the order of the fucking parameters, when I've defined it the other way around!

    Open ##2344859