View Single Post
  #13   Spotlight this post!  
Unread 12-02-2015, 09:16
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Talon SRX Missing Encoder Counts in Labview

Quote:
Originally Posted by TylerStaudigel View Post
What do you mean by the motor enable vi. Is it the motor set output or something in the begin category?
In my student's code, when a limit switch was hit, he has a true/false condition that "disable the motor" then it would "enable the motor".

What Omar is saying is inside this VI, it writes a SET Position of "0" each time this VI is called. Here is the screen shot Omar sent us to check. We will check this tonight.

Omar recommends NOT USING Motor Enable/Disable in this method because the VI write the SET POSITION in the back ground, I assume for safety reasons...it writes a set position of ZERO so the PID won't take off when the motor is enabled. You don't want a "run-a-away" motor condition on power up.
Attached Thumbnails
Click image for larger version

Name:	motorenable.jpg
Views:	28
Size:	36.1 KB
ID:	18297  
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote