View Single Post
  #5   Spotlight this post!  
Unread 09-02-2012, 16:58
violinuxer violinuxer is offline
Registered User
FRC #2523
 
Join Date: Jan 2012
Location: Vermont
Posts: 13
violinuxer is an unknown quantity at this point
Re: Camera code says "output not being updated enough"

Quote:
Originally Posted by jesusrambo View Post
First off, I'd recommend putting your camera image acquisition code either in its own subsystem, or in your teleopPeriodic in your main robot class.

The error you're getting trips when the jaguars aren't getting their motor speed values updated often enough from the code, and from looking at this I'd bet you guys aren't actually calling the methods to update the jaguar values in your robot code anywhere.

EDIT: I think violinuxer is right, I think your image acquisition is causing the code to hang for a little while as it's capturing the image, and that delay is causing the error.
Yeah. We do it by putting all the subsystems in their own threads. We're still using SimpleRobot, but with a kinda-conmmand-based interface. It works quite well!

violinuxer
Reply With Quote