mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
desktop: fixed desktop barometer code
This commit is contained in:
parent
3648c81dd9
commit
8d882c3640
@ -10,7 +10,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <APM_BMP085.h> // ArduPilot Mega BMP085 Library
|
#include <AP_Baro.h> // ArduPilot Mega BMP085 Library
|
||||||
#include "desktop.h"
|
#include "desktop.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
void sitl_update_barometer(float altitude)
|
void sitl_update_barometer(float altitude)
|
||||||
{
|
{
|
||||||
extern APM_BMP085_HIL_Class barometer;
|
extern AP_Baro_BMP085_HIL barometer;
|
||||||
double Temp, Press, y;
|
double Temp, Press, y;
|
||||||
|
|
||||||
Temp = 312;
|
Temp = 312;
|
||||||
|
Loading…
Reference in New Issue
Block a user