milind-u | 62d4a8e | 2021-10-11 16:08:41 -0700 | [diff] [blame] | 1 | #include "y2020/constants.h" |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 2 | #include "y2020/control_loops/superstructure/superstructure.h" |
| 3 | |
| 4 | #include "aos/events/shm_event_loop.h" |
| 5 | #include "aos/init.h" |
| 6 | |
Austin Schuh | 094d09b | 2020-11-20 23:26:52 -0800 | [diff] [blame] | 7 | int main(int argc, char **argv) { |
| 8 | ::aos::InitGoogle(&argc, &argv); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 9 | |
| 10 | aos::FlatbufferDetachedBuffer<aos::Configuration> config = |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame^] | 11 | aos::configuration::ReadConfig("aos_config.json"); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 12 | |
| 13 | ::aos::ShmEventLoop event_loop(&config.message()); |
milind-u | 62d4a8e | 2021-10-11 16:08:41 -0700 | [diff] [blame] | 14 | ::y2020::constants::InitValues(); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 15 | ::y2020::control_loops::superstructure::Superstructure superstructure( |
| 16 | &event_loop); |
| 17 | |
| 18 | event_loop.Run(); |
| 19 | |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 20 | return 0; |
| 21 | } |