mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 07:33:34 +08:00
Fix copy_quaternion reference in code generation
This commit is contained in:
committed by
Lorenz Meier
parent
8d60f8ba8f
commit
8cc8db211c
+3
-1
@@ -256,7 +256,9 @@
|
||||
return self->get_state_delayed(out);
|
||||
}
|
||||
void get_quaternion(float out[4]) {
|
||||
return self->copy_quaternion(out);
|
||||
for(unsigned int i = 0; i < 4; i++) {
|
||||
out[i] = self->get_quaternion()(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <validation/data_validator.h>
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <validation/data_validator.h>
|
||||
|
||||
Reference in New Issue
Block a user