mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
snapdragon: changed constexpr to const in FlightTask so that it would compile
This commit is contained in:
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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user