Results 1 to 2 of 2

Thread: Bug: inconsistent timing units in Get Competition Mode.vi

  1. #1
    Join Date
    Jan 2007
    Location
    Kokomo, Indiana USA
    Posts
    92

    Default Bug: inconsistent timing units in Get Competition Mode.vi

    Who maintains the LabVIEW WPI Robotics Library? I found a bug today.

    Playing around with the robot program, I wanted to do something based on how long the robot was in a disabled state. The "Disabled Elapsed Seconds" element of the "Match Info" output cluster from Basic Get Mode vi seemed the natural place to get the amount of time the robot spends in disabled.

    Probing that cluster showed something odd. During disabled, the value was obviously in milliseconds, but after disabled it switched to showing seconds. I traced it down to the Get Competition Mode vi, where it uses Tick Count (ms). It explicitly divides by 1000 whenever the mode changes to store the elapsed time in the Match Info cluster, but it uses the raw milliseconds while it's counting during a mode.

    I changed my copy of the vi to be consistent. There's a division by 1000 after the timer delta computation at the bottom left of the "False/False/False/False" nested cases. I added an identical division at the left middle of the "False/False/False/True" case. Now my Match Info values are always in seconds.

  2. #2
    Join Date
    Sep 2008
    Posts
    85

    Default Re: Bug: inconsistent timing units in Get Competition Mode.vi

    Good catch. I'm not sure if there will be any more patches this year, but we may put up the single VI and certainly want to fix it for next year.

    Greg McKaskle

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •