Go to Post Life isn't a set track: you have to go out and make your own path. - Greg Marra [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-24-2016, 01:43 PM
RoboPirate RoboPirate is offline
Registered User
FRC #1584
 
Join Date: Jan 2013
Location: Nederland, CO
Posts: 2
RoboPirate is an unknown quantity at this point
GRIP, Network Tables, and mutual exclusion

I've been trying to determine the cause of occasional crashes of our robot code. We are using GRIP running on the RoboRIO and access the network tables in our robot code.

I can't find any method in NetworkTable to ensure that we get a coherent set of information from the camera. We access multiple sub-tables in our target processing (width, height, X, and Y centers). However, there doesn't seem to be any guarantee that each table we fetch is referring to the same image. There is no mutual exclusion for the table so, in theory, GRIP could be updating the table at about the same time we are accessing it, giving us a set of sub-tables that don't go together.

Do the task priorities in RTLinux guarantee that this won't happen or is there some mutex mechanism I haven't found?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:25 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi