View Single Post
  #1   Spotlight this post!  
Unread 04-03-2014, 23:17
Tedi Tedi is offline
Registered User
FRC #4343
 
Join Date: Mar 2014
Location: Aurora
Posts: 3
Tedi is an unknown quantity at this point
initialize() Method - Command Based

Hey guys,
So I was reading the wpilib documentation on the initialize() method within a command and it stated that the initialize() method will run "immediately before the command is executed for the first time and every subsequent time it is started". Now when we tested with our robot, it seemed like the initialize() method would only run when the class was instantiated and not every time the command was started. Could anyone please tell me if the initialize() method is supposed to run every time the command is started or is it acting as it should.
Thanks
Reply With Quote