![]() |
This Code worked, then it didn't
Hello, I have made code for my team's minibot deployment system. It worked once, then never again
Code:
package com.robototes.abomasnow;Code:
/*Where did I screw up? |
Re: This Code worked, then it didn't
Code:
public MinibotDeployment(int vicPort, int swiPort) { |
Re: This Code worked, then it didn't
Quote:
JK Quote:
If you use the loop but never reach the limit what happens to the rest of the robot code? P.S. what "didn't" work? Did the robot stop working? If so it appears that you tripped the watchdog. |
Re: This Code worked, then it didn't
Quote:
|
Re: This Code worked, then it didn't
Everything in my code is mono-package by design.
the minibot deployment is called as MinibotDeployment rusty = new MinibotDeployment(3,5); The robot gets stuck in the loop and no PWM values are set |
Re: This Code worked, then it didn't
Quote:
You should look at possibly using a state machine or schedule a TimerTask to complete your operations. As is its preventing communications with the driver station and/or the rest of the code. Example change Code:
while ((Timer.getFPGATimestamp() < time + 5.0f) && this.thePole.getLeftWays()) {Code:
final double time = Timer.getFPGATimestamp();Why call a timer to set the motor to .25 instead of setting the motor to 0.25 then creating a timer to stop the motor? To avoid the motor safety shutting it off |
Re: This Code worked, then it didn't
ok, thanks for the code. We found that the problem was a freaking pwm cable dying on us. >_<
|
| All times are GMT -5. The time now is 22:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi