View Single Post
  #1   Spotlight this post!  
Unread 04-02-2015, 20:00
DrOmni9885's Avatar
DrOmni9885 DrOmni9885 is offline
Registered User
FRC #1595 (Dragons)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Spokane, WA
Posts: 8
DrOmni9885 is an unknown quantity at this point
Re: Child function problems

Quote:
Originally Posted by lopsided98 View Post
You've basically explained the cause of the problem yourself. You need to declare the Talons as member variables of the class and initialize them in the function that starts your robot code. In other words, you need to move the initialization out of that function and into on that is only executed once. Its hard to be more specific without more code, but I hope this helps.
In other words there's no way I can write a child function that dictates the movement of motors? That's... to bad I guess. I'll see what I can do. Thanks for your help.
Reply With Quote