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" |
James Kuszmaul | 09f564a | 2019-02-18 17:37:09 -0800 | [diff] [blame] | 6 | #include "y2019/control_loops/drivetrain/event_loop_localizer.h" |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 7 | |
| 8 | using ::frc971::control_loops::drivetrain::DrivetrainLoop; |
| 9 | |
| 10 | int main() { |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame^] | 11 | ::aos::InitNRT(true); |
| 12 | |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame] | 13 | ::aos::ShmEventLoop event_loop; |
James Kuszmaul | 09f564a | 2019-02-18 17:37:09 -0800 | [diff] [blame] | 14 | ::y2019::control_loops::drivetrain::EventLoopLocalizer localizer( |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame^] | 15 | &event_loop, ::y2019::control_loops::drivetrain::GetDrivetrainConfig()); |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 16 | DrivetrainLoop drivetrain( |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 17 | ::y2019::control_loops::drivetrain::GetDrivetrainConfig(), &event_loop, |
| 18 | &localizer); |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame^] | 19 | |
| 20 | event_loop.Run(); |
| 21 | |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 22 | ::aos::Cleanup(); |
| 23 | return 0; |
| 24 | } |