Brian Silverman | f3e1de8 | 2013-04-09 18:45:41 -0700 | [diff] [blame] | 1 | #include "WPILib/NetworkRobot/NetworkRobot.h" |
| 2 | #include "WPILib/RobotBase.h" |
| 3 | #include "aos/common/Configuration.h" |
| 4 | |
| 5 | namespace frc971 { |
| 6 | |
| 7 | class MyRobot : public NetworkRobot { |
| 8 | public: |
| 9 | MyRobot() : NetworkRobot(static_cast<uint16_t>(::aos::NetworkPort::kMotors), |
| 10 | ::aos::configuration::GetIPAddress( |
Brian Silverman | ea79f0d | 2013-04-26 22:33:49 -0700 | [diff] [blame^] | 11 | ::aos::configuration::NetworkDevice::kAtom), |
| 12 | static_cast<uint16_t>(::aos::NetworkPort::kDS), |
| 13 | ::aos::configuration::GetIPAddress( |
Brian Silverman | f3e1de8 | 2013-04-09 18:45:41 -0700 | [diff] [blame] | 14 | ::aos::configuration::NetworkDevice::kAtom)) {} |
| 15 | }; |
| 16 | |
| 17 | } // namespace frc971 |
| 18 | |
| 19 | START_ROBOT_CLASS(::frc971::MyRobot); |