mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 18:08:53 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user