Skip to content

Commit

Permalink
Add dedicated survey camera plane model
Browse files Browse the repository at this point in the history
This is to allow us to test triggering properly in SITL
  • Loading branch information
LorenzMeier committed May 18, 2019
1 parent 72fb0ae commit d58f77a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ROMFS/px4fmu_common/init.d-posix/1030_plane
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ then
param set RWTO_TKOFF 1

param set WEST_EN 1

# Distance trigger mode enabled
param set TRIG_MODE 4
fi

set MIXER_FILE etc/mixers-sitl/plane_sitl.main.mix
Expand Down
8 changes: 8 additions & 0 deletions ROMFS/px4fmu_common/init.d-posix/1031_plane_cam
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
#

sh /etc/init.d-posix/1030_plane

if [ $AUTOCNF = yes ]
then
# Camera trigger interface is MAVLink
param set TRIG_INTERFACE 3
# Distance trigger mode enabled
param set TRIG_MODE 4
fi
2 changes: 1 addition & 1 deletion platforms/posix/cmake/sitl_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set(viewers none jmavsim gazebo)
set(debuggers none ide gdb lldb ddd valgrind callgrind)
set(models none shell
if750a iris iris_opt_flow iris_vision iris_rplidar iris_irlock iris_obs_avoid solo typhoon_h480
plane
plane plane_cam
standard_vtol tailsitter tiltrotor
hippocampus rover)
set(all_posix_vmd_make_targets)
Expand Down

0 comments on commit d58f77a

Please sign in to comment.