|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Loop Starving Robot Drive
First off I am a relatively new programmer in LabVIEW. Our robot is running a four-motor tank drive. I have been having problems when driving the robot, the code cuts and the robot has to be disabled and reenabled in the driver station. This cut only happens when the left joystick is foward and the right joystick is back AND when past 60% power. The other way works fine.
We checked the diagnosis and came up with this error code: ERROR <Code> -44061 occurred at "RobotDrive" in the VI path: Robot Main.vi <time>17:15:45 02/1/2013 FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop. I have gone through the code and checked everything that might be causing this problem but it continues to occur. Any suggestions of what can I do to fix this? |
|
#2
|
||||
|
||||
|
Re: Loop Starving Robot Drive
Can you attach your Teleop code so we can take a look at it? (I'm assuming that this problem is occurring when you are running with Teleop enabled.)
|
|
#3
|
||||
|
||||
|
Re: Loop Starving Robot Drive
I am having a similar problem and dont know what to do. I have attached our teleop code for review. We dont lose communication but our drive speed is very slow.
|
|
#4
|
|||
|
|||
|
Re: Loop Starving Robot Drive
Quote:
Try disabling non-drive parts of your code using the Diagram Disable structure. If you do it in sections, you can maybe see which part is the problem. Or at least see which parts aren't the problem. |
|
#5
|
||||
|
||||
|
Re: Loop Starving Robot Drive
It seems consistently slow. The error we get on the DS is:
ERROR <Code> -44061 occurred at "RobotDrive" in the VI path: Robot Main.vi <time>23:36:12 03/13/2013 FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop. |
|
#6
|
|||||
|
|||||
|
Re: Loop Starving Robot Drive
Quote:
It sounds like your Digital Sidecar is not properly powered with battery voltage from the Power Distribution Board. The -44061 error is probably unrelated to the cutout you're seeing when commanding a turn. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|