View Single Post
  #11   Spotlight this post!  
Unread 02-09-2011, 13:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,880
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How to use eeprom in labview

To play it back you can run a While loop inside the Autonomous vi
  • Set initial conditions, e.g., pseudo-joystick values = zero
  • Feed initial pseudo-joystick values into motor set speed
  • While forever loop (with an appropriate delay)
    • Read one playback line
    • In an inside loop (with an appropriate delay)
      • Keep checking until elapsed time >= recorded Robot Time (make sure the times are measured the same)
      • When the condition is true, pass the new pseudo-joystick values out, exit the inside loop
    • Feed pseudo-joystick values into motor set speed
    • Make allowances to set speed to zero after the last playback line is read as a safety measure (that'll also help handle partial/incomplete playback files)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-09-2011 at 16:29.
Reply With Quote