Added superstructure_main and deploy targets.
Change-Id: Iba799c18c6dbc3bf0e555e32a61dcf803c28b086
diff --git a/NO_BUILD_AMD64 b/NO_BUILD_AMD64
index f2eac85..886e438 100644
--- a/NO_BUILD_AMD64
+++ b/NO_BUILD_AMD64
@@ -25,3 +25,5 @@
-//y2016_bot4:download
-//y2016_bot4:download_stripped
-//y2017:wpilib_interface
+-//y2017:download
+-//y2017:download_stripped
diff --git a/y2016/BUILD b/y2016/BUILD
index a168496..f91ba02 100644
--- a/y2016/BUILD
+++ b/y2016/BUILD
@@ -1,5 +1,4 @@
load('/aos/downloader/downloader', 'aos_downloader')
-load('/aos/downloader/downloader', 'aos_downloader_dir')
cc_library(
name = 'constants',
diff --git a/y2017/BUILD b/y2017/BUILD
index 55ea1ca..7730a93 100644
--- a/y2017/BUILD
+++ b/y2017/BUILD
@@ -1,3 +1,5 @@
+load('/aos/downloader/downloader', 'aos_downloader')
+
cc_library(
name = 'constants',
visibility = ['//visibility:public'],
@@ -60,3 +62,33 @@
'//y2017/actors:autonomous_action_queue',
],
)
+
+aos_downloader(
+ name = 'download',
+ start_srcs = [
+ #':joystick_reader',
+ ':wpilib_interface',
+ '//aos:prime_start_binaries',
+ '//y2017/control_loops/drivetrain:drivetrain',
+ '//y2017/control_loops/superstructure:superstructure',
+ '//y2017/actors:autonomous_action',
+ ],
+ srcs = [
+ '//aos:prime_binaries',
+ ],
+)
+
+aos_downloader(
+ name = 'download_stripped',
+ start_srcs = [
+ #':joystick_reader.stripped',
+ ':wpilib_interface.stripped',
+ '//aos:prime_start_binaries_stripped',
+ '//y2017/control_loops/drivetrain:drivetrain.stripped',
+ '//y2017/control_loops/superstructure:superstructure.stripped',
+ '//y2017/actors:autonomous_action.stripped',
+ ],
+ srcs = [
+ '//aos:prime_binaries_stripped',
+ ],
+)
diff --git a/y2017/control_loops/superstructure/BUILD b/y2017/control_loops/superstructure/BUILD
index ebcc164..1632850 100644
--- a/y2017/control_loops/superstructure/BUILD
+++ b/y2017/control_loops/superstructure/BUILD
@@ -56,3 +56,15 @@
'//y2017/control_loops/superstructure/turret:turret_plants',
],
)
+
+cc_binary(
+ name = 'superstructure',
+ srcs = [
+ 'superstructure_main.cc',
+ ],
+ deps = [
+ '//aos/linux_code:init',
+ ':superstructure_lib',
+ ':superstructure_queue',
+ ],
+)
diff --git a/y2017/control_loops/superstructure/superstructure_main.cc b/y2017/control_loops/superstructure/superstructure_main.cc
new file mode 100644
index 0000000..0c8d9a7
--- /dev/null
+++ b/y2017/control_loops/superstructure/superstructure_main.cc
@@ -0,0 +1,11 @@
+#include "y2017/control_loops/superstructure/superstructure.h"
+
+#include "aos/linux_code/init.h"
+
+int main() {
+ ::aos::Init();
+ ::y2017::control_loops::superstructure::Superstructure superstructure;
+ superstructure.Run();
+ ::aos::Cleanup();
+ return 0;
+}