only enforce frame size for nuttx

This commit is contained in:
Daniel Agar
2015-10-06 23:37:33 -04:00
parent a3d79c6e15
commit 4151522902
15 changed files with 22 additions and 31 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ function(px4_add_common_flags)
# but generates too many false positives
)
if (NOT ${OS} STREQUAL "qurt")
if (${OS} STREQUAL "nuttx")
list(APPEND warnings -Wframe-larger-than=1024)
endif()
@@ -35,9 +35,7 @@ px4_add_module(
MAIN attitude_estimator_ekf
STACK 1200
COMPILE_FLAGS
-Wframe-larger-than=3100
-Wno-float-equal
SRCS
attitude_estimator_ekf_main.cpp
codegen/AttitudeEKF.c
@@ -31,15 +31,13 @@
#
#############################################################################
set(MODULE_CFLAGS)
if (NOT ${OS} STREQUAL "qurt")
list(APPEND MODULE_CFLAGS
-Wframe-larger-than=1400)
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1400)
endif()
px4_add_module(
MODULE modules__attitude_estimator_q
MAIN attitude_estimator_q
COMPILE_FLAGS
${MODULE_CFLAGS}
COMPILE_FLAGS ${MODULE_CFLAGS}
STACK 1200
SRCS
attitude_estimator_q_main.cpp
+2 -4
View File
@@ -31,10 +31,8 @@
#
############################################################################
set(MODULE_CFLAGS -Os)
if(NOT ${OS} STREQUAL "qurt")
list(APPEND MODULE_CFLAGS
-Wframe-larger-than=2600)
if(${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=2300)
endif()
px4_add_module(
MODULE modules__commander
-1
View File
@@ -36,7 +36,6 @@ px4_add_module(
STACK 1200
COMPILE_FLAGS
-Os
SRCS
land_detector_main.cpp
land_detector_params.c
+5 -1
View File
@@ -30,16 +30,20 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1500)
endif()
px4_add_module(
MODULE modules__mavlink
MAIN mavlink
STACK 1200
COMPILE_FLAGS
${MODULE_CFLAGS}
-Wno-attributes
-Wno-packed
-DMAVLINK_COMM_NUM_BUFFERS=3
-Wno-packed
-Wframe-larger-than=2000
-Wno-tautological-constant-out-of-range-compare
-Os
SRCS
mavlink.c
@@ -30,10 +30,14 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3500)
endif()
px4_add_module(
MODULE modules__mc_att_control
MAIN mc_att_control
STACK 1200
COMPILE_FLAGS ${MODULE_CFLAGS}
SRCS
mc_att_control_main.cpp
mc_att_control_params.c
@@ -33,8 +33,6 @@
px4_add_module(
MODULE modules__mc_att_control_multiplatform
MAIN mc_att_control_m
COMPILE_FLAGS
-Wframe-larger-than=1300
SRCS
mc_att_control_main.cpp
mc_att_control_start_nuttx.cpp
@@ -64,11 +64,9 @@ static const int ERROR = -1;
MulticopterAttitudeControlMultiplatform::MulticopterAttitudeControlMultiplatform() :
MulticopterAttitudeControlBase(),
_task_should_exit(false),
_actuators_0_circuit_breaker_enabled(false),
/* publications */
_att_sp_pub(nullptr),
_v_rates_sp_pub(nullptr),
_actuators_0_pub(nullptr),
_n(_appState),
@@ -85,10 +85,8 @@ public:
void spin() { _n.spin(); }
private:
bool _task_should_exit; /**< if true, sensor task should exit */
bool _actuators_0_circuit_breaker_enabled; /**< circuit breaker to suppress output */
px4::Publisher<px4_vehicle_attitude_setpoint> *_att_sp_pub; /**< attitude setpoint publication */
px4::Publisher<px4_vehicle_rates_setpoint> *_v_rates_sp_pub; /**< rate setpoint publication */
px4::Publisher<px4_actuator_controls_0> *_actuators_0_pub; /**< attitude actuator controls publication */
@@ -33,9 +33,6 @@
px4_add_module(
MODULE modules__mc_pos_control_multiplatform
MAIN mc_pos_control_m
COMPILE_FLAGS
-Wframe-larger-than=1900
SRCS
mc_pos_control_main.cpp
mc_pos_control_start_nuttx.cpp
@@ -30,16 +30,14 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
set(MODULE_CFLAGS)
if(NOT ${OS} STREQUAL "qurt")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3900)
if(${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=3800)
endif()
px4_add_module(
MODULE modules__position_estimator_inav
MAIN position_estimator_inav
STACK 1200
COMPILE_FLAGS ${MODULE_CFLAGS}
SRCS
position_estimator_inav_main.c
position_estimator_inav_params.c
+4 -1
View File
@@ -30,13 +30,16 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1500)
endif()
px4_add_module(
MODULE modules__sdlog2
MAIN sdlog2
PRIORITY "SCHED_PRIORITY_MAX-30"
STACK 1200
COMPILE_FLAGS
-Wframe-larger-than=1500
${MODULE_CFLAGS}
-Os
SRCS
sdlog2.c
-2
View File
@@ -43,8 +43,6 @@ px4_add_module(
-Wno-attributes
-Wno-packed
-Wno-packed
-Wframe-larger-than=1500
SRCS
${SIMULATOR_SRCS}
DEPENDS
+1 -1
View File
@@ -34,7 +34,7 @@ set(MIXER_CFLAGS -Os)
if(${OS} STREQUAL "qurt")
list(APPEND MIXER_CFLAGS -Wframe-larger-than=2176)
else()
list(APPEND MIXER_CFLAGS -Wframe-larger-than=2064)
list(APPEND MIXER_CFLAGS -Wframe-larger-than=2100)
endif()
px4_add_module(