Search found 3 matches
- 15 Feb 2013, 04:41
- Forum: Mindstorms Software
- Topic: Continuous Rotation Servo w/ NXTServo
- Replies: 3
- Views: 5069
Re: Continuous Rotation Servo w/ NXTServo
Well, I was able to play around with the code tonight and I got it working! What finally worked for me was: if (currState.r_j_y < -15) { Pos_Servo2 += 5; Pos_Servo3 -= 5; NXTServo_SetPosition(S1, ServoAddr, 2, Pos_Servo2); NXTServo_SetPosition(S1, ServoAddr, 3, Pos_Servo3); } else if (currState.r_j_...
- 14 Feb 2013, 19:31
- Forum: Mindstorms Software
- Topic: Continuous Rotation Servo w/ NXTServo
- Replies: 3
- Views: 5069
Re: Continuous Rotation Servo w/ NXTServo
Ah, I should have thought of that! So are you saying possibly doing something like this? if (currState.square == 1) { Pos_Servo2 += 10; NXTServo_SetPosition(S1, ServoAddr, 2, Pos_Servo2); } else { Pos_Servo2 = 1500; NXTServo_SetPositioin(S1, ServoAddr, 2, Pos_Servo2); } If I'm not mistaken that shou...
- 14 Feb 2013, 06:05
- Forum: Mindstorms Software
- Topic: Continuous Rotation Servo w/ NXTServo
- Replies: 3
- Views: 5069
Continuous Rotation Servo w/ NXTServo
Hey all, I am working on a project that utilizes the NXTServo from Mindsensors. The project is an arm that uses 9 servos (two are in a Y-harness to accomodate for NXTServo's 8 ports). Anyways, I have the program working with regular servos, but i am having trouble when I try to use continuous rotati...