I spent way too long on this issue 🥲
You know, a project isnt a project when theres not one moment where you think that is SO over!
That was today! I began testing some parts of the hardware before ordering the PCB and without putting it inside the frame.
At first everything went smoothly (supicously smoothly), but then… My motors began doing some weird ahh stuff where they reacted way too late after I tilted the sensor. I thought, it must be some timing issue, or my code is just so poorly written that its running too slow.
I tried some methods to make it faster (less lcd updates, etc.)
Still nothing…
Then I made a little debugging program to find out the frequency at which the code runs, and the delta time variable. Turns out that this wasnt the problem at all!! My frequency and delta time were perfect!
…
Thats when I made the discovery that I didnt think about the PID values. I just set them to some number and didn’t give it a second thought because I wont tune it anyways without the frame… But of course the motors wont respond as I hoped they would if the values weren’t even close to what they need to be😑
But we’re back babyyyyyy!!!!
Next is the frame design and CAD!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.