![]() |
Basic motor programming help
Hello,
We are trying to get two motors to run with this program, but when we run it, the build is successful but nothing happens. We are using the Java Deploy feature to compile the program to the RoboRio. Both of our Talon SRX motors have successfully connected to our RoboRio using CAN cables and are showing orange alternating lights. We are assuming that the motors should automatically run once we deploy the program, but we may be wrong about this. Is there something wrong in our code below or our method of compilation? Code:
package org.usfirst.frc.team6560.robot;Charging Champions |
Re: Basic motor programming help
Quote:
Instead, you should implement a looping state machine so you can ensure that each loop iteration is as short as possible. I've also done some refactoring for you Code:
public class Robot extends IterativeRobot { |
Re: Basic motor programming help
Thank you so much for your help. With a few adjustments, the code worked on our motors. We greatly appreciate it.
Thanks, Charging Champions |
| All times are GMT -5. The time now is 09:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi