QuRT and POSIX changes - part 3

More staged changes to support QuRT and related POSIX changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-24 01:13:08 -07:00
parent 071c4c1a9e
commit c802beb3d7
4 changed files with 58 additions and 5 deletions
@@ -132,7 +132,7 @@
#include <stdio.h>
#include <poll.h>
#include <fcntl.h>
#include <sys/prctl.h>
//#include <sys/prctl.h>
#include <math.h>
#include <float.h>
#include <mathlib/mathlib.h>
@@ -41,11 +41,12 @@
#include "commander_helper.h"
#include <px4_posix.h>
#include <px4_time.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <math.h>
#include <cmath>
#include <drivers/drv_hrt.h>
#include <drivers/drv_airspeed.h>
#include <uORB/topics/sensor_combined.h>
@@ -157,7 +158,7 @@ int do_airspeed_calibration(int mavlink_fd)
diff_pres_offset = diff_pres_offset / calibration_count;
if (isfinite(diff_pres_offset)) {
if (PX4_ISFINITE(diff_pres_offset)) {
int fd_scale = px4_open(AIRSPEED0_DEVICE_PATH, 0);
airscale.offset_pa = diff_pres_offset;