paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Logging data and configuring barometric sensor


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Logging data and configuring barometric sensor
Date: Tue, 15 Apr 2014 13:11:57 +0200

Hi Matthew,

if you are using a standard flight plan you can use the GeoInit block to call ResetGroundReferenceHere() which will set your current altitude as ground alt and move your waypoints by the difference to previous ground alt.

Depending on which paparazzi_version you are using, setting of the barometer scale (pressure to meters) differs.
On v5.0x you still have to set INS_BARO_SENS, whereas on master the baro outputs pressure in Pascal and the proper barometric formula is used to convert it to an altitude in meters.

Regarding logging: if you start a session that includes a server (normal flight session) you don't have to start an additional server process. Make sure it is not running with the -n (nolog) flag. Then switch to the raw telemetry, so your autopilot will actually send the raw sensor readings. You can also run the messages tool to see if you receive the RAW messages for the sensor you want to calibrate. Stop the server so it will write the log to disk.
Then when you have a log with the data, call the calibration script with the -s SENSOR as described on the wiki, so e.g. for the accelerometers:
sw/tools/calibration/calibrate.py -s ACCEL var/logs/YY_MM_DD__hh_mm_ss.data

Cheers, Felix


On Tue, Apr 15, 2014 at 3:42 AM, paparazzi_guy <address@hidden> wrote:
Hello everybody,

When we took our plane to the test field the other day, the plane's altitude
read 17m when it was on the ground. Changing the height above sea level
didn't fix this and we ended up having to raise the altitude of all the
other waypoints. However, having this incorrect value at ground level could
cause problems in the future. I assume the plane is getting this value from
the barometric sensor and we are using the Aspirin v2.2 IMU. However, there
is no mention of how to calibrate the barometer for the IMU in the Wiki page
"IMU Calibration". It does talk about the processes of calibrating other
sensors using data logging. Which brings me to my second question.

I've been trying to work through the process of using data logging as
specified in the "IMU Calibration" and "Logs" but with no success. I've seen
people ask a few questions about this in the past but the process was not
explained very well. This is what I did:
-Executed a session by connecting to my plane with a XBEE
-Started running my flight plan
-Turned on the Server by going to Tools/Server
-Turned off the Server
-Went to Log Plotter and opened my latest log file
-Nothing happens

This might be because the next step in the "IMU Calibration" document was to
"Run the Python script on [the log file] to get your calibration
coefficients and add them to your airframe file."
Which didn't make much sense to me.
Some final information is that I go to var/logs and my .log files have lots
of text in them while my .data files are empty.

Any information on one or both of these question would help me tremendously.
Thanks

Matthew



--
View this message in context: http://lists.paparazziuav.org/Logging-data-and-configuring-barometric-sensor-tp15097.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]