Owne / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

APM Trunk Mavlink_Common.h Compilation Issue #270

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A call to mavlink_msg_raw_pressure_send() in Mavlink_Common.h is missing the 
(raw) "temperature" argument and prevents APM compilation when certain Mavlink 
defines are in use in the config file.

The attached patch fills in the argument with the "pitot" sensor's raw 
temperature reading.

As a note, the actual arguments RawPress (existing) and RawTemp (added) are of 
type int32_t but the function expects int16_t for both of these values. It 
seems (from the BMP085 datasheet) that RawTemp is just a signed 16-bit value so 
no data should be lost when converting the int32 to int16 but the RawTemp value 
(as currently existing in trunk) may lose data during this conversion. The 
attached patch does not try to address this.

Original issue reported on code.google.com by timb...@gmail.com on 10 Jan 2011 at 5:44

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by dewei...@gmail.com on 14 Mar 2011 at 10:04