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_ws
andgit submodule update --init --recursive
. catkin build
orcatkin_make
- Install Unity 2018.2.7f1 (on Ubuntu).
- Clone rosflight_unity_simulator into your favourite location.
- Clone
rosflight_joy
into yourcatkin_ws
and build. - After sourcing your
catkin_ws
, runrosrun rosflight_unity rosflight_unity
to start the ROSflight Unity SIL. - Press the 'play' button in the
rosflight_unity_simulator
Unity 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_unity
node) - Calibrate the IMU:
rosservice call /calibrate_imu
- Throttle stick down and to the right to arm (down and to the left to disarm).
- Fly!