Demo of c-atom library usage: Piloting Cessna 172 in flightgear
- Make sure you have all submodules inited and updated:
git submodule update --init --recursive
- Run
make prebuild
to generate code of atomic functions - Build catom runner by
make catom
command - Copy
rig/flightgear/*.xml
toProtocol
dir inside your FlightGear installation - Add the following to the FlightGear command line options (check that c172 is selected as an aircraft):
--generic=socket,in,50,,6000,udp,fg_in_control
--generic=socket,in,50,,6001,udp,fg_in_switches
--generic=socket,out,50,127.0.0.1,6010,udp,fg_out_nav
--generic=socket,out,50,127.0.0.1,6011,udp,fg_out_engine
- Start FlightGear
- Run
catom
bymake run_catom
- Use
rig/flightgear/commander.sh
to toggle commands