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( | ||||
11 | ::aos::configuration::NetworkDevice::kAtom)) {} | ||||
12 | }; | ||||
13 | |||||
14 | } // namespace frc971 | ||||
15 | |||||
16 | START_ROBOT_CLASS(::frc971::MyRobot); |