-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VehicleInfo : add srv into sys_status plugin to request basic info fr…
…om vehicle
- Loading branch information
Showing
4 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Vehicle Info msg | ||
uint8 sysid #SYSTEM ID | ||
uint8 compid #COMPONENT ID | ||
uint8 autopilot #MAV_AUTOPILOT | ||
uint8 type #MAV_TYPE | ||
uint8 system_status #MAV_STATE | ||
uint8 base_mode | ||
uint32 custom_mode | ||
string mode #MAV_MODE string | ||
uint32 mode_id #MAV_MODE number | ||
uint64 capabilities #MAV_PROTOCOL_CAPABILITY | ||
uint32 flight_sw_version #Firmware version number | ||
uint32 middleware_sw_version #Middleware version number | ||
uint32 os_sw_version #Operating system version number | ||
uint32 board_version #HW / board version (last 8 bytes should be silicon ID, if any) | ||
uint16 vendor_id #ID of the board vendor | ||
uint16 product_id #ID of the product | ||
uint64 uid #UID if provided by hardware |
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,14 @@ | ||
# Request the Vehicle Info | ||
# use this to request the current target sysid / compid defined in mavros | ||
# set get_all = True to request all available vehicles | ||
|
||
uint8 GET_MY_SYSID = 0 | ||
uint8 GET_MY_COMPID = 0 | ||
|
||
uint8 sysid | ||
uint8 compid | ||
bool get_all | ||
--- | ||
bool success | ||
mavros_msgs/VehicleInfo[] vehicles | ||
|