-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ctu-mrs/mavlink_to_gcs
add --mavlink_gcs_udp_port param to the drone spawner
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ros_packages/mrs_uav_gazebo_simulation/ROMFS/px4fmu_common/init.d-posix/px4-rc.mavlink_gcs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC2154 | ||
|
||
# GCS link | ||
mavlink start -x -u $MAVLINK_GCS_UDP_PORT -r 4000000 -f | ||
mavlink stream -r 100 -s ATTITUDE -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s ATTITUDE_QUATERNION -u $MAVLINK_GCS_UDP_PORT # /mavros/imu/data | ||
mavlink stream -r 100 -s ATTITUDE_TARGET -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s HIGHRES_IMU -u $MAVLINK_GCS_UDP_PORT # /mavros/imu/data_raw | ||
mavlink stream -r 100 -s LOCAL_POSITION_NED -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s ODOMETRY -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s GLOBAL_POSITION_INT -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 10 -s RC_CHANNELS -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 10 -s SYS_STATUS -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s HEARTBEAT -u $MAVLINK_GCS_UDP_PORT | ||
mavlink stream -r 100 -s DISTANCE_SENSOR -u $MAVLINK_GCS_UDP_PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters