![]() |
Motors not running
This is the first year as the main programmer on the robot. Even though I think I have them written correctly, no motors are running. The code gives no errors and seems to correctly deploy onto the robot. I know that the electronics are wired correctly because when I uploaded last year's code onto the robot, they were able to spin. What am I doing wrong?
RobotMap Code:
package edu.wpi.first.wpilibj.templates;Code:
package edu.wpi.first.wpilibj.templates.commands;Code:
package edu.wpi.first.wpilibj.templates.subsystems;Code:
/* |
Re: Motors not running
The mistake you made is very subtle and easy to miss. In your RobotDrive object, you gave it the arguments (frontleft, frontright, rearleft, rearright), but when using a 4 motor configuration, you have to give it (frontleft, rearleft, frontright, rearright). Try structuring it like that and it should work.
|
| All times are GMT -5. The time now is 22:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi