Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3550
     beech
    Participant

    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;

    #3443
     beech
    Participant

    thank 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);
      }
    #3431
     beech
    Participant

    Thank 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,

Viewing 3 posts - 1 through 3 (of 3 total)