|Please help me with my teleop code!
|Page 1 of 1|
|Author:||nanoslugs [ Sun Oct 12, 2014 3:53 pm ]|
|Post subject:||Please help me with my teleop code!|
So, I am making a teleop program for our FTC Tetrix robot and my code is currently not working, so if someone would be so kind as to help me fix my code that would be great.
Well here it is:
So I go in to the Samantha Field Control program, connect to the robot with samantha, and start the match and nothing happens. All the motors are connected, all the wires are in tight, I set the teleop program on the NXT to this program, and thats all I can think of, so thank you in advance.
|Author:||BurningLights [ Sun Oct 12, 2014 9:37 pm ]|
|Post subject:||Re: Please help me with my teleop code!|
I'm amazed this even compiles. But, ROBOTC seems to allow some funky things when it comes to the joysticks. Anyhow, if you're going for analog control, what you need is something like this:
If you want to include a dead band (since the controller sticks usually don't return exactly to 0), you would need something like:
And then use the same type setup for your right motor.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group