Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When the sensor is disabled via boardconfig, the code throws an error during the build process. #24226

Open
serkanMzlm opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@serkanMzlm
Copy link
Contributor

Describe the bug

The environment where I use the vehicle is not suitable for the magnetometer, so in older versions of the PX4 Autopilot software, I disabled the magnetometer on the vehicle using the 'make px4_fmu-v6c_default boardconfig' command followed by 'modules->ekf2->mag disable'. However, after updating to the latest version of the PX4 Autopilot software, I encountered errors when performing the same procedure.

error:

/ekf2/EKF2.cpp:2838:28: error: 'vehicle_magnetometer_s' was not declared in this scope; did you mean 'vehicle_odometry_s'?
 2838 |     uORB::SubscriptionData<vehicle_magnetometer_s> vehicle_mag_sub{ORB_ID(vehicle_magnetometer), mag};
      |                            ^~~~~~~~~~~~~~~~~~~~~~
      |                            vehicle_odometry_s
compilation terminated due to -Wfatal-errors.

Image

To Reproduce

  1. I connected the drone to the computer using a USB cable.
  2. I ran the 'make px4_fmu-v6c_default boardconfig' command in the directory where the PX4 Autopilot software is located.
  3. I disabled the 'modules->ekf2->mag' section.
  4. I attempted to upload to the vehicle using the 'make px4_fmu-v6c_default upload' command.

Expected behavior

In older versions, at the beginning of 1.14 and 1.15, it was building and uploading to the vehicle without any issues, and the vehicle would detect its initial position as 0 every time it was restarted

Screenshot / Media

Image

Flight Log

No response

Software Version

I downloaded the main branch and completed the installation. The active tag on the main branch is 1.16-0-alpha2, but when I checked on QGC, it shows 1.15.0-beta

Flight controller

Holybro Pixhawk 6C Mini

Vehicle type

Multicopter

How are the different components wired up (including port information)

No response

Additional context

No response

@dagar dagar self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants