Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
- July 14, 2016 at 1:19 pm #3550beechParticipant
Thanks for the idea Jason. My setup is a little different but I was using my laptop every time i needed to change the speed of my turn. I put a potentionmeter on the receiver side and so far it is working.
turn=(potPercentage /100.0) * turn;
May 25, 2016 at 9:53 am #3443beechParticipantthank you, that seems to work but wanted to make sure i’m not interfering with your inputBuffer and reduction from 255.
if (inputBuffer[0] == 'S' && inputBuffer[1] == 'D' && inputBuffer[2] == 'R' && inputBuffer[5]==(inputBuffer[3]+inputBuffer[4])>>1) { drive=-(inputBuffer[3]-127); //Normalize values once the header and checksum have passed turn=inputBuffer[4]-127; // Drive and turn commands //wire connect = turn black to m2a / drive red to m1a ST_control.drive(drive); // 5/22 test @ 67% turn=0.15 * turn; ST_control.turn(turn); }
May 17, 2016 at 2:41 pm #3431beechParticipantThank you for your reply, very helpful.
Back to the Xbee Joystick, can I change the sensitivity of turn? Drive is fine, but turn which is on “analogRead(A0)” is overly aggressive for my project. Again, this is my first time with arduino so maybe i’m just missing obvious settings in the joystick’s .ino file
Thanks again,
- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)