|
Re: Multiple Autonomous Programs
Quote:
Originally Posted by Arhowk
So much work!
We just used A and Y to swap between modes.
|
I like using the SmartDashboard, rather than joystick controls, because there's no button mapping to keep track of. We can add as many auton programs as we want and add each to the chooser with a single line of code. Anyone using the driver station can see the list of the choices, with names/descriptions, and click one to choose it, without having to know the button scheme (or even have a controller). Also, compared to your code I have to say it seems a little simpler; we don't even need an array to keep track of all of our auton programs. (Although of course I have not ruled out the possibility that your code is simply more fancy than ours.)
__________________
Ratpack programming lead 2013 - 2015
ἔκλαγξαν δ᾽ ἄρ᾽ ὀϊστοὶ ἐπ᾽ ὤμων χωομένοιο / αὐτοῦ κινηθέντος: ὃ δ᾽ ἤϊε νυκτὶ ἐοικώς. (Ancient Greek nerds unite!)
Last edited by alopex_rex : 11-01-2015 at 22:54.
Reason: if a post is edited on a forum, and no one saw it beforehand, was it really edited?
|