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 12:30:33 -05:00
committed by Daniel Agar
parent f2e8aabda4
commit c2c8ed6f5c
2 changed files with 3 additions and 1 deletions
+2
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),
+1 -1
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,