copied everything over from 2012 and removed all of the actual robot code except the drivetrain stuff
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4078 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/aos/atom_code/messages/DriverStationDisplay.h b/aos/atom_code/messages/DriverStationDisplay.h
new file mode 100644
index 0000000..9ce3712
--- /dev/null
+++ b/aos/atom_code/messages/DriverStationDisplay.h
@@ -0,0 +1,31 @@
+#ifndef AOS_ATOM_CODE_MESSAGES_DRIVER_STATION_DISPLAY_H_
+#define AOS_ATOM_CODE_MESSAGES_DRIVER_STATION_DISPLAY_H_
+
+#include <stdint.h>
+#include <string.h>
+
+#include "aos/aos_core.h"
+#include "aos/common/type_traits.h"
+
+namespace aos {
+const size_t kLineLength = 21;
+
+struct DriverStationDisplay {
+ static void Send(int line, const char *fmt, ...)
+ __attribute__((format(printf, 2, 3)));
+ static const DriverStationDisplay *GetNext(); // returns NULL if there are no more
+ static void Free(const DriverStationDisplay *msg);
+
+ uint8_t line;
+ char data[kLineLength + 1];
+
+ private:
+ static void GetQueue();
+ static aos_queue *queue;
+};
+static_assert(shm_ok<DriverStationDisplay>::value,
+ "DriverStationDisplay will go through shared memory");
+} // namespace aos
+
+#endif
+