Quote:
Originally Posted by DrOmni9885
CANTalon and Talon instances, when initialized within the function itself, executes over and over again as the main TeleopPeriodic section in the main program loops
|
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.