View Single Post
  #2   Spotlight this post!  
Unread 15-02-2013, 21:19
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motors turning on when I click enable the 2nd Time

I didn't look at the code, but I have a pretty good guess as to what will explain your issue.

Disabling an output prevents it from controlling a motor, spike, etc. It doesn't zero the value, however. This means that the setpoints for speed of a motor are still sitting there waiting to be enabled again.

One approach to consider is to zero the values in the disable VI. You can also do this initialization in the first frame of teleop. The Call Context will be Init on the first call.

Greg McKaskle
Reply With Quote