View Single Post
  #5   Spotlight this post!  
Unread 20-02-2012, 11:14
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Value refreshing on SmartDashboard

Update -- changing the value that comes to the dashboard didn't seem to work.

Quote:
Originally Posted by Ginto8 View Post
If you want an indicator of when the NetworkTable is updated, you could have a boolean value that you invert every update, as a way of indicating the change. This would be a MUCH better idea than tweaking the double because it wouldn't actually skew your data at all. Floating point is a little weird because changes that you think are easily reversible may not be after all, which means that tweaking a double is just generally a very bad idea
Yes, but then the double wouldn't have changed and the value wouldn't be updated. I'm not doing any calculations with the numbers other than graphics math on the dashboard, and I don't care if the graph is 1 pixel off. Don't worry, It would always be the last step before smartdashboard.