|
Re: how to toggle motors in c++ using buttons
Quote:
Originally Posted by Bluejackets
just did... still the exact same results... only moves with the joysticks. i tried changing it to arcade drive and that did not make a difference...
|
Are the motors a part of a RobotDrive object somewhere else? If so, the commands that you are sending the RobotDrive are probably overriding your motor commands. Try deleting the line where you use the tankDrive or arcadeDrive method and see if that works.
__________________
My FRC History:
2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder
Last edited by Poseidon5817 : 12-12-2015 at 12:34.
Reason: Fixed a typo on the quote tags.
|