Sensors
Sensors are parts fitted into slots, with one exception: the IMU, barometer and magnetometer belong to the airframe itself, as the autopilot carries them on the real vehicle. The slots and their accepted types are in the configuration page, and new sensor parts can be added following the Add a part guide.
Available sensors
Sensor |
Part |
Slot |
Fitted by default |
|---|---|---|---|
IMU, barometer, magnetometer |
the airframe |
yes |
|
GPS |
|
|
yes |
Sensors ROS API
Flight sensors
ROS Topic |
Description |
Message type |
|---|---|---|
|
Body IMU |
|
|
Barometer |
|
|
Magnetometer |
GPS
ROS Topic |
Description |
Message type |
|---|---|---|
|
Position fix |
These topic names are not fixed strings. Every part topic is built as
/<namespace>/<instance>/<suffix>, so the fix above is the gps
instance publishing fix under the x500 namespace. Change the vehicle
and the topics change with it:
Empty the GPS slot and
/x500/gps/fixgoes away with the part.Rename the instance and the topic follows the new name.
Set
topic,gz_topicorros_topicon the part in the config to rename the base yourself.