Go to Post Kickoff features the joys of discovery. Ship date features the fear of utter failure. - Koko Ed [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 09-02-2012, 13:22
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Possible bug in Network Tables?

We encountered a repeatable byte-ordering bug in the following situation.

We have a custom java widget integrated into the smart dashboard which sends a double to the robot in the network tables. We can verify the number we're sending because we also display the number.

On the robot, in C++ code, we receive the number from the network tables and then just send it back to the smart dashboard to make sure we have the data pipeline working.

When the number gets back to the smartdashboard (extremely large), it is corrupted; my guess is the byte order got swapped somewhere.

We switched to sending and recieving integers and that works great so it seems like the bug is in the code that handles doubles specifically and maybe its in the C++ recieving code on the cRio. I believe we are sending other doubles from C++ fine.
 


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 09:40.

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