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:
Beat Küng 2017-11-13 18:30:33 +01:00 committed by Daniel Agar
parent f2e8aabda4
commit c2c8ed6f5c
2 changed files with 3 additions and 1 deletions

View File

@ -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),

View File

@ -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,