Go to Post In FIRST, you can either have comfortable safety margins or you can have a competitive robot, you can't have both. - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 16-02-2016, 11:55
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
Do we need to wait between CAN Bus commands?

Hi;

My question is that in 2016 do we still need to wait between sequential CAN Bus Commands? In the past if we wrote to a CANJaguar we needed to wait before issuing another command too fast. I've read that the devices are being queried and updated every 20 msec. But I have not found any information regarding a need to wait between CAN commands for the last command to finish. For instance if we read currents from the Power Distribution Panel do we need to wait between reading the first and the second channels? Would we have issues reading four channels in a row? Or do the new libraries take care of that for us?

Should we assume that a CAN command that returns a value will not continue until the value is read? And that a command that sets a value without returning a variable may take a while to actually execute? Therefor we do not need to wait after asking for a reading, but may need to wait after sending a command? Or do the libraries buffer all CAN commands?

We are programming in Java.

Thanks
 


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 00:57.

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