
27-02-2014, 07:27
|
|
Mentor
AKA: Steve Peterson
 FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
|
|
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 581
|
|
|
Re: BCD switch programming
Enums are really useful. Here's a good example from our 2013 code of a command that supervises a subsystem on the robot, with several states represented by enum values:
https://github.com/stevep001/RoboEag...sorCommand.cpp
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament
2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
|