I am trying to set up a unique mavlink configuration for my drone using the px4 but we are running into issues. The setup we need to use is a baud rate of 115200 on telem2. When looking over the documentation for the px4 it mentions that we should be using mav_0_config setting and a few of the other mav_0_* settings so that we can set the mavlink setting. When we look for this parameter on QGroundControl we can not find any of these parameters.
Is this something that is a hidden parameter? Are we able to see these at all or how are we able to change these parameters?
We have updated our px4 to the latest firmware and are still running into the same issue. Any help would be much appreciated.
We are looking at the trouble shooting section of that link. The failing part is that our parameters do not show up and we do not know how to actually change the firmware so that we are able to see the mavlink commands that are found here https://docs.px4.io/en/advanced_config/parameter_reference.html#mavlink
I am facing similar issues too. Unable to find some parameters from QGC. However, this is not consistent across all Pixhawk boards. I am interested in understanding how some parameters appear and some do not. Is this PX4 Firmware issue or board issue? Any help here is very much appreciated.
Parameters show up when the module that uses them is included in the build. That is why on FMUv2 boards you’ll sometimes see missing parameters - because a lot has had to be disabled to allow the firmware to fit into the 1Mb limit on those boards.
There is no documentation of the mapping, but often you can guess from the name or purpose. The easiest way though is to just do a search on PX4/Firmware repo for the parameter name. The module name is then obvious from the file path of the definition.
NOTE! There is a reason these are disabled. If you are really using Pixhawk 1 board that must have FMUv2 then it only has 1 MB of memory. That is not a lot. If you enable a module to add whatever functionality you need, you may have to disable another module. I can’t offer much advice on that.
If your hardware is relatively new, it may not actually require FMUv2 - you may be able to install FMUv3. But to do this you might need to do a bootloader update Redirecting to latest version of document (master)
I had the same issue with firmware v1.8.2, have to compile v1.9.0 (from master) and now I can see MAV_* parameters as expected. Note that I’m using Pixhawk 1 (HW 2.4.8), so my chipset STM32F427 is Rev3, and I built and flashed px4fmu-v3_default firmware
BTW, vs changing MAV_* parameters directly, I would recommend to use the following approach, so if any issues, you can remove the SD card and connect pixhawk to QGC via usb:
create following path & file in your SD card: /etc/extras.txt
add the following content: mavlink stop-all mavlink start -d /dev/ttyS2 -b 921600 -r 20000 -m onboard
Another reason why parameters may not be showing is because of port conflicts.
I was trying to set up a companion computer on a Pixhawk 4 mini.
It only has one telemetry port, so I tried to change MAV_1_CONFIG from Disabled to TELEM1, then reboot. But other MAV_1_* params would still not show, because MAV_0_CONFIG was pointing to TELEM1.
After setting MAV_0_CONFIG to a random port, and TELEM1 was only set at MAV_1_CONFIG, then the other params showed again.
However, I will use MAV_0 for the comapanion computer.