|
Re: We Need Serious Robot Help!
If you believe the electronics are in better shape, lets talk about how to debug SW.
If you go to RobotMain and press the run button, the code will download and start running. At that point you can open TeleOp and other subVIs and see values on their panels. You can open their diagrams and right-click to probe wire values.
So, after you are running your code, go to the Driver Station and Enable the robot for TeleOp mode. Open the TeleOp VI and determine if the joystick is making it to the robot and tracks physical joystick input values. If so, move to the Robot Drive code. It actually returns the values that it sent to the motors and by default those were being written to the SmartDashboard so that your could see what the SW was sending. Since that code has been deleted, you may want to wire it to indicators. Right click on the outputs and create indicators.
Determine if the SW is sending useful values to the motor controllers.
If you aren't making progress, you may want to open an example, set the PWM values and verify your electronics with that. You may also want to create a new robot project, set your PWM values in Begin, but don't delete and decorate the code so much until you know that it works.
Greg McKaskle
|