Infrastructure for running a ROSflight software-in-the-loop (SIL) simulation with Unity (see rosflight_unity_simulator).
- Clone this repo into your
catkin_ws. - Clone rosflight into your
catkin_wsandgit submodule update --init --recursive. catkin buildorcatkin_make
- Install Unity 2018.2.7f1 (on Ubuntu).
- Clone rosflight_unity_simulator into your favourite location.
- Clone
rosflight_joyinto yourcatkin_wsand build. - After sourcing your
catkin_ws, runrosrun rosflight_unity rosflight_unityto start the ROSflight Unity SIL. - Press the 'play' button in the
rosflight_unity_simulatorUnity project. - Run
rosrun rosflight rosflight_io _udp:=true - Plug in your compatible (e.g., Taranis) RC transmitter.
- Run
rosrun rosflight_joy rc_joy RC:=/rosflight_unity/rc_in - Set the mixer to 2:
rosservice call /param_set MIXER 2 - Write the autopilot parameters to memory:
rosservice call /param_write(params will be written to file, in whatever directory you started therosflight_unitynode) - Calibrate the IMU:
rosservice call /calibrate_imu - Throttle stick down and to the right to arm (down and to the left to disarm).
- Fly!