Open gregoryw3 opened 1 year ago
Please try to build from source. Foxy is EOLed, so perhaps the version is old. Btw you can ask apt
to tell package version.
Please try to build from source. Foxy is EOLed, so perhaps the version is old. Btw you can ask
apt
to tell package version.
I'll try building from source however the project I'm working on we're using a radxa zero which only officially supports Ubuntu 20. Do you know if the latest version can work on Ubuntu 20? Also Foxy just received its last package update, so although it's EoL now it wasn't a week ago.
You should be able to build latest sources for Foxy.
You should be able to build latest sources for Foxy.
I've tried building mavros from source and it still didn't output any altitude.
I've had the same issue, I'm on Humble
Issue details
mavros/altitude does not publish altitude from FC. As far as I can see, Ardupilot runs EKF on the FC and calculates the altitude. MAVROS does not seem to properly capture this value which can be seen from both mavproxy.py and Mission Planner.
Does mavros need some service call to enable this? Or need to set home position? I have this in the enable plugins folder and in the mavros log I can see the plugin is initialized. I know for IMU data you need to set a stream rate via (or at least this is how I got IMU data to publish as maybe it just hasn't worked for me and others I'm working with):
ros2 service call /mavros/set_stream_rate mavros_msgs/StreamRate "{stream_id: 0, message_rate: 10, on_off: 1}"
EDIT: for anyone looking to update a specific message rate this command worked for me:
ros2 run mavros mav sys message-interval --id 27 --rate 20
Mavlink message ID's: 31 = Quaternion 27 = IMU
I have used this on two boards so far and both have the issue,
Mateksys H743-SLIM V3
andFlywoo GOKU GN 745 AIO with 40A ESC
Overall I don't know if this is a configuration issue, or I'm missing something or the plugin doesn't work.
MAVROS version and platform
Mavros: Unknown, version that is installed with
ros-foxy-mavros
ROS: Foxy Ubuntu: 20.04.6 LTSAutopilot type and version
[ X ] ArduPilot [ ] PX4
Version: V4.5.0-dev (9bcc2604)
Node logs
then nothing.
When I made a quick node to output /mavros/altitude it also did not output any data.
Diagnostics
ros2 topic echo /diagnostics
Check ID
ros2 run mavros mav checkid