mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:53:34 +08:00
Fixes for posix-arm and qurt builds
Ifdefed out deadcode in position_estimator_inav_main.c as the deadcode does not compile for qurt. Added fixes to get a successful build for posix-arm and qurt targets. Removed CLOCK_REALTIME def from px4_time.h for qurt and removed unused variables in att_est_q and mc_att_control. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -46,8 +46,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <px4_config.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <termios.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <uORB/uORB.h>
|
||||
@@ -192,6 +190,7 @@ static void write_debug_log(const char *msg, float dt, float x_est[2], float y_e
|
||||
float corr_vision[3][2], float w_xy_vision_p, float w_z_vision_p, float w_xy_vision_v)
|
||||
{
|
||||
return;
|
||||
#ifndef __PX4_QURT
|
||||
FILE *f = fopen(PX4_ROOTFSDIR"/fs/microsd/inav.log", "a");
|
||||
|
||||
if (f) {
|
||||
@@ -215,6 +214,7 @@ static void write_debug_log(const char *msg, float dt, float x_est[2], float y_e
|
||||
|
||||
fsync(fileno(f));
|
||||
fclose(f);
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user