Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | #include "y2020/control_loops/superstructure/superstructure.h" |
| 2 | |
| 3 | #include "aos/events/shm_event_loop.h" |
| 4 | #include "aos/init.h" |
| 5 | |
| 6 | int main(int /*argc*/, char * /*argv*/ []) { |
James Kuszmaul | ad8a808 | 2020-02-14 21:21:58 -0800 | [diff] [blame] | 7 | ::aos::InitNRT(); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 8 | |
| 9 | aos::FlatbufferDetachedBuffer<aos::Configuration> config = |
| 10 | aos::configuration::ReadConfig("config.json"); |
| 11 | |
| 12 | ::aos::ShmEventLoop event_loop(&config.message()); |
| 13 | ::y2020::control_loops::superstructure::Superstructure superstructure( |
| 14 | &event_loop); |
| 15 | |
| 16 | event_loop.Run(); |
| 17 | |
| 18 | ::aos::Cleanup(); |
| 19 | return 0; |
| 20 | } |