View unanswered posts | View active topics It is currently Thu Apr 24, 2014 3:55 pm






Reply to topic  [ 2 posts ] 
Program termination at end of match 
Author Message
Rookie
User avatar

Joined: Mon Feb 23, 2009 12:40 pm
Posts: 27
Post Program termination at end of match
With this years design involving a shooter for wiffle balls, we would really like to be able to float the motors when the program is stopped at the end of the match. With the current setup the motors stop abrubtly and eventually damage the gearboxes on the motors. Is it possible to have custom shutdown code run at the end of a match (the end of autonomous would be good also)? Or is it at least possible to set the bFloatDuringInactiveMotorPWM to apply to either individual motors or individual motor controllers? All we really need for the custom shutdown code would be to set the motors to float before stopping them. When we set bFloatDuringInactiveMotorPWM for the entire TeleOp program, the programmer complained that the motors performed very erratically and did not operate the same as with the motors braked (directions seemed to change among other things).


Mon Jan 25, 2010 2:36 pm
Profile
Expert

Joined: Mon Oct 27, 2008 9:59 pm
Posts: 137
Post Re: Program termination at end of match
The flag needs to be set prior to each motor being set to take effect.
You could internally create a timer task that would flip the flag & set each motor just before two minutes is up. Not very clean, but a possibility.
The problem is that the FCS kills your running program; so I cannot think of a better way to trigger an end-of-match event to coast the motors.


Mon Jan 25, 2010 3:10 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.