mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 12:37:34 +08:00
Interface: output vector quantities by "return-by-value"
This commit is contained in:
committed by
Mathieu Bresciani
parent
72d8f91b4d
commit
2fa43419d2
@@ -58,7 +58,7 @@ void EkfLogger::writeState()
|
||||
_file << time;
|
||||
if(_state_logging_enabled)
|
||||
{
|
||||
matrix::Vector<float, 24> state = _ekf_wrapper.getState();
|
||||
matrix::Vector<float, 24> state = _ekf->getStateAtFusionHorizonAsVector();
|
||||
for(int i = 0; i < 24; i++)
|
||||
{
|
||||
_file << "," << state(i);
|
||||
|
||||
Reference in New Issue
Block a user