Thread: Error problems
View Single Post
  #16   Spotlight this post!  
Unread 07-02-2015, 22:13
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,808
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: Error problems

The problem is your motor code only runs once when the robot starts and never again, because of where you placed it in Periodic Tasks.

Two solutions:
  1. Move the motor code to Teleop.vi, because Teleop gets called over and over again by Robot Main, so your motor code will get called every time new joystick commands are received.
  2. Move the motor code into the 10ms loop in Periodic Tasks. Because that loop gets repeated over and over again, calling your motor code over and over again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote