forked from Archive/PX4-Autopilot
navigator: make FollowTarget::_follow_position_matricies constexpr (#8281)
The matrix is never changed and has a size of 144 bytes.
This commit is contained in:
parent
f2e8aabda4
commit
c2c8ed6f5c
|
@ -56,6 +56,8 @@
|
|||
|
||||
#include "navigator.h"
|
||||
|
||||
constexpr float FollowTarget::_follow_position_matricies[4][9];
|
||||
|
||||
FollowTarget::FollowTarget(Navigator *navigator, const char *name) :
|
||||
MissionBlock(navigator, name),
|
||||
_navigator(navigator),
|
||||
|
|
|
@ -85,7 +85,7 @@ private:
|
|||
FOLLOW_FROM_LEFT
|
||||
};
|
||||
|
||||
float _follow_position_matricies[4][9] = {
|
||||
static constexpr float _follow_position_matricies[4][9] = {
|
||||
{
|
||||
1.0F, -1.0F, 0.0F,
|
||||
1.0F, 1.0F, 0.0F,
|
||||
|
|
Loading…
Reference in New Issue