created a NetworkRobot class that sends messages successfully
diff --git a/frc971/crio/crio.gyp b/frc971/crio/crio.gyp
index 62d88bc..731743b 100644
--- a/frc971/crio/crio.gyp
+++ b/frc971/crio/crio.gyp
@@ -29,17 +29,35 @@
],
},
{
+ 'target_name': 'dumb_main',
+ 'type': 'static_library',
+ 'sources': [
+ 'dumb_main.cc',
+ ],
+ 'dependencies': [
+ '<(EXTERNALS):WPILib',
+ '<(AOS)/common/common.gyp:common',
+ ],
+ },
+ {
'target_name': 'FRC_UserProgram',
'type': 'shared_library',
'dependencies': [
- 'user_program'
+ 'WPILib_changes',
+ 'dumb_main',
+ ],
+ },
+ {
+ 'target_name': 'FRC_UserProgram_old',
+ 'type': 'shared_library',
+ 'dependencies': [
+ 'user_program',
],
},
{
'target_name': 'FRC_UserProgram_WithTests',
'type': 'shared_library',
'dependencies': [
- # For testing.
'<(AOS)/build/aos_all.gyp:Crio',
],
},
diff --git a/frc971/crio/dumb_main.cc b/frc971/crio/dumb_main.cc
new file mode 100644
index 0000000..ade0af1
--- /dev/null
+++ b/frc971/crio/dumb_main.cc
@@ -0,0 +1,16 @@
+#include "WPILib/NetworkRobot/NetworkRobot.h"
+#include "WPILib/RobotBase.h"
+#include "aos/common/Configuration.h"
+
+namespace frc971 {
+
+class MyRobot : public NetworkRobot {
+ public:
+ MyRobot() : NetworkRobot(static_cast<uint16_t>(::aos::NetworkPort::kMotors),
+ ::aos::configuration::GetIPAddress(
+ ::aos::configuration::NetworkDevice::kAtom)) {}
+};
+
+} // namespace frc971
+
+START_ROBOT_CLASS(::frc971::MyRobot);