![]() |
C++ Help with driving the robot forward
Hello, we are of team 108. We are having some problems with our robot/code. In the code, we tell the robot to drive using the myRobot.TankDrive() function (We're driving in autonomous. We're not worrying about Teleop yet).
We have the robot using 4 Jaguars to connect to 4 motors. The Jaguars are connected to the Digital Side Car in this way: Front Left motor: PWM 6 Rear Left motor: PWM 5 Front Right motor: PWM 2 Rear Right motor: PWM 1 Code:
#include "WPILib.h"We added DriverStationLCD objects and methods to debug and test where the code gets its errors. The code goes through autonomous perfectly, just not driving the robot. We want the robot to drive at half speed forward for 2 seconds. Thank you in advanced. *EDIT* Also, the jaguars do not have a solid light when the autonomous is enabled. They are continuously blinking while enabled on every setting. |
Re: C++ Help with driving the robot forward
Welcome to Chief Delphi!
The Jaguar LEDs blinking yellow indicates that there is no PWM signal. Check your PWM connections and cables. Also, just a suggestion, but you might find it easier to debug drive motor issues in teleop mode than in autonomous mode. |
Re: C++ Help with driving the robot forward
Code:
// these must be initialized in the same order |
| All times are GMT -5. The time now is 12:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi