mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 09:13:34 +08:00
remove all <cmath> usage
* the NuttX c++ library is incomplete, let's avoid including it until we have a real standard library in place
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
#include <px4_platform_common/tasks.h>
|
||||
#include <px4_platform_common/getopt.h>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <px4_platform_common/getopt.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <errno.h>
|
||||
#include <cmath> // NAN
|
||||
#include <math.h> // NAN
|
||||
#include <string.h>
|
||||
|
||||
#include <uORB/Subscription.hpp>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <cmath> // NAN
|
||||
#include <math.h> // NAN
|
||||
#include <cstring>
|
||||
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include "baro.hpp"
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
const char *const UavcanBarometerBridge::NAME = "baro";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if UAVCAN_KINETIS_TIMER_NUMBER
|
||||
# include <cassert>
|
||||
# include <cmath>
|
||||
# include <math.h>
|
||||
|
||||
/*
|
||||
* Timer instance
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#if UAVCAN_STM32_TIMER_NUMBER
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
/*
|
||||
* Timer instance
|
||||
|
||||
Reference in New Issue
Block a user