mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +08:00
snapdragon: changed constexpr to const in FlightTask so that it would compile
This commit is contained in:
committed by
Beat Küng
parent
50c1eba392
commit
01ecb05341
@@ -2,8 +2,7 @@
|
||||
#include <mathlib/mathlib.h>
|
||||
|
||||
constexpr uint64_t FlightTask::_timeout;
|
||||
constexpr vehicle_local_position_setpoint_s FlightTask::empty_setpoint;
|
||||
|
||||
const vehicle_local_position_setpoint_s FlightTask::empty_setpoint = {0, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN};
|
||||
|
||||
bool FlightTask::initializeSubscriptions(SubscriptionArray &subscription_array)
|
||||
{
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
return _vehicle_local_position_setpoint;
|
||||
}
|
||||
|
||||
static constexpr vehicle_local_position_setpoint_s empty_setpoint = {0, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN};
|
||||
static const vehicle_local_position_setpoint_s empty_setpoint;
|
||||
|
||||
protected:
|
||||
/* Time abstraction */
|
||||
|
||||
Reference in New Issue
Block a user