Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get altitude data from GPS and accelerometer
#1
How to get altitude data from GPS and accelerometer

I want to get altitude data.
So I connected GPS to the flight controller. The flight controller has a built-in accelerometer.

GPS data is available, but it looks like the accelerometer isn't being used.
I manually move the drone up and down when I get the data, but it is not reflected in the altitude data. But the accelerometer is reacting.

Is it possible to apply accelerometer data to altitude data?

I use a manba mk3 flight controller.
Reply
Login to remove this ad | Register Here
#2
To get accurate altitude data you need a barometer. Some FCs have barometers built-in, or you can buy an external one and wire it to your FC via I2C if it supports it.

Can you confirm exactly which FC you have? Photos and a CLI dump will be useful.
Reply
#3
Agreed. You need a barometer for the most accurate readings. From my experience GPS altitude readings in most cases are useless and too inaccurate / erratic. Once you have a barometer installed you will also want to run the following commands in the CLI to force use of the barometer for altitude readings. Make sure you also put a piece of open cell foam over the barometer chip.

Code:
set position_alt_source = BARO_ONLY
save
Reply
#4
Thank you for the advice.
I will send you an image of the flight controller you are using.
This flight controller has a built-in barometer.

I will try this command.


Code:
set position_alt_source = BARO_ONLY
save


Attached Files Thumbnail(s)
   
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  MAG sesnor on GPS M181 Walksnail not working on Mark 4/5 marcinknd 7 425 20-Nov-2023, 01:38 PM
Last Post: SnowLeopardFPV
  Accelerometer issue aerokam 5 492 18-Sep-2023, 09:19 PM
Last Post: aerokam
  Iflight F7 , GPS not recognized dv1ne 0 395 13-Sep-2022, 11:04 PM
Last Post: dv1ne
  Help Is there anyone in here who can read blackbox data? relentlesstech 0 218 04-Sep-2022, 01:11 AM
Last Post: relentlesstech
  Help Gyro/Accelerometer charts, how to read? Zanna83 0 508 20-Jan-2022, 05:03 PM
Last Post: Zanna83


Login to remove this ad | Register Here