Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 1 | #include "aos/init.h" |
| 2 | |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame^] | 3 | #include "aos/events/shm-event-loop.h" |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 4 | #include "frc971/control_loops/drivetrain/drivetrain.h" |
| 5 | #include "y2019/control_loops/drivetrain/drivetrain_base.h" |
| 6 | |
| 7 | using ::frc971::control_loops::drivetrain::DrivetrainLoop; |
| 8 | |
| 9 | int main() { |
| 10 | ::aos::Init(); |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame^] | 11 | ::aos::ShmEventLoop event_loop; |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 12 | DrivetrainLoop drivetrain( |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame^] | 13 | ::y2019::control_loops::drivetrain::GetDrivetrainConfig(), &event_loop); |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 14 | drivetrain.Run(); |
| 15 | ::aos::Cleanup(); |
| 16 | return 0; |
| 17 | } |