Added initial indexer loop. It pulls in discs correctly, but doesn't do anything else.
diff --git a/frc971/control_loops/control_loops.gyp b/frc971/control_loops/control_loops.gyp
index 18df792..7a8c8f1 100644
--- a/frc971/control_loops/control_loops.gyp
+++ b/frc971/control_loops/control_loops.gyp
@@ -2,6 +2,7 @@
'variables': {
'loop_files': [
'DriveTrain.q',
+ 'index_motor.q',
]
},
'targets': [
@@ -37,6 +38,50 @@
'includes': ['../../aos/build/queues.gypi'],
},
{
+ {
+ 'target_name': 'index_lib',
+ 'type': 'static_library',
+ 'sources': [
+ 'index.cc',
+ 'index_motor_plant.cc',
+ ],
+ 'dependencies': [
+ '<(AOS)/build/aos.gyp:libaos',
+ 'control_loops',
+ '<(AOS)/common/common.gyp:controls',
+ '<(DEPTH)/frc971/frc971.gyp:common',
+ '<(EXTERNALS):eigen',
+ ],
+ },
+ {
+ 'target_name': 'index_lib_test',
+ 'type': 'executable',
+ 'sources': [
+ 'index_lib_test.cc',
+ 'transfer_motor_plant.cc',
+ ],
+ 'dependencies': [
+ '<(EXTERNALS):gtest',
+ '<(AOS)/build/aos.gyp:libaos',
+ 'control_loops',
+ 'index_lib',
+ '<(AOS)/common/common.gyp:queue_testutils',
+ '<(EXTERNALS):eigen',
+ ],
+ },
+ {
+ 'target_name': 'index',
+ 'type': 'executable',
+ 'sources': [
+ 'index_main.cc',
+ ],
+ 'dependencies': [
+ '<(AOS)/build/aos.gyp:libaos',
+ 'index_lib',
+ 'control_loops',
+ ],
+ },
+ {
'target_name': 'DriveTrain',
'type': 'executable',
'sources': [