Last seen: 2019-12-31 8:02 pm
I found this code on gethub and was wondering if anyone could help me incorporate it into my code for turning my robot, I won't be using a keyboard bu...
lol at magic numbers well I warned you my logic might not make sense to anyone but me so let me try and explain my logic as best I can. if the robot i...
Let me explain Dheading & heading as best I can Dheading is my desired heading (direction) of the robot and that value changes throughout the vo...
Thank you for you advise, I have made the changes you suggested.
Thank you for that info, I had no idea how to do that :) Here is my revised ino if you want to look it over, Thanks a million.
Thank you for pointing that out I missed one curly bracket and had one to many in that code. Here is my corrected code, I hope I fixed it correctly. ...
Thank you for your input and I should have explained what the code does, so let me try to explain my logic here. This code takes the value from the "c...
This works but is there a better way to do it? Any help would be much appreciated. void aligntocompass(){ if (heading==0){// if compass heading i...
LOL I don't blame you there because my not knowing how to program my, logic might not make perfect sense to anyone other than me :). Thanks again for ...
lol , now maybe you could take a look at the way my logic works for turning and simplify that (big grin) :)
cmmoved=(encoderValueR / 10); this variable is to calculate how far chip (The Robot) moved in centimeters. and I have removed the lines 210 and 211...
Okay here is the new ino file with changes and the actual rpm is about 40 when set it to be at 10, and about 10 rpm when I set it for 2 , just like b...
volatile long lastencoderValueR = 0; volatile long lastencoderValueL = 0; So woule I delete these lines in my global ?
So all this would go in my Void Loop ?