Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created February 8, 2011 03:44
Show Gist options
  • Save basicxman/815811 to your computer and use it in GitHub Desktop.
Save basicxman/815811 to your computer and use it in GitHub Desktop.
1. MyRobot constructor is called.
2. Relay is initialized on port 8.
3. Relay constructor is called
4. GetDefaultDigitalModule() is called as an argument to the InitRelay parameter
5. InitRelay is called with the default slot, slot channel (relay port) is placed in m_channel
6. Relay.m_module is declared as a new DigitalModule
7. Reverse is set to false
8. Reverse is set to true.
9. MyRobot constructor finishes
10. TeleopInit is called
11. Relay.Set(Relay::kForward) is called
12. Case kForward is called
13. Assertion passes that m_direction is not equal to kBothDirections
14. Relay forward is set to true
15. Relay reverse is NOT set (condition is false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment