![]() |
operatorControl() not being called
For some reason operatorControl() is not being called. robotInit() is, but not operatorControl(). So as a secondary problem it was continuously saying "Output not updated enough", which through research I came to realize was a functionality of MotorSafety, which can be disabled with drive.setSafetyEnabled(false). Unfortunately that didn't work because it was in operatorControl() and operatorControl() was not being called when we switched to Teleoperated.
Code: http://pastebin.com/6BzKXXVA Unfortunately the stack trace isn't available to me right now. |
Re: operatorControl() not being called
I suspect that your code is crashing, prior to operatorControl, which is the cause of the motor safety messages. Please provide the entire netbeans output, there should be a stack trace in there.
|
Re: operatorControl() not being called
Quote:
|
Re: operatorControl() not being called
Are you enabling the robot on the driver station?
|
Re: operatorControl() not being called
Yes.
|
Re: operatorControl() not being called
One problem is that you are allocating a bunch of PWMs to the same channel (0).
Code:
// Motor constantsYou might want to assign them unique values and try again. Brad |
Re: operatorControl() not being called
Tried commenting them out nothing changed.
Another programmer on the team discovered that the movement code worked fine on its own, but once the Camera code was added the motors fail to run, even in teleop. |
Re: operatorControl() not being called
Bump. The situation has not changed. I've tried placing the camera code in a different class, nothing changed. My mentor believes that the camera is sending too much data for the cRio to handle, but even when recording at 1 FPS the situation has not changed.
|
Re: operatorControl() not being called
Well we've figured it out. Apparently your while loops should run at 10Hz to stay synced with the cRio. Locking.
crap how do i lock this aaaaaa |
| All times are GMT -5. The time now is 02:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi