Add correction to workaround rejection
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
3f91741cfa
commit
e2523135a9
5 changed files with 123 additions and 32 deletions
|
@ -72,6 +72,8 @@ struct device3_filters_t {
|
|||
float magnetic [3 * 4];
|
||||
};
|
||||
|
||||
struct device3_correction_t;
|
||||
|
||||
struct device3_vec3_t {
|
||||
float x;
|
||||
float y;
|
||||
|
@ -91,6 +93,7 @@ typedef enum device3_event_t device3_event_type;
|
|||
typedef struct device3_ahrs_t device3_ahrs_type;
|
||||
typedef struct device3_calibration_t device3_calibration_type;
|
||||
typedef struct device3_filters_t device3_filters_type;
|
||||
typedef struct device3_correction_t device3_correction_type;
|
||||
|
||||
typedef struct device3_vec3_t device3_vec3_type;
|
||||
typedef struct device3_quat_t device3_quat_type;
|
||||
|
@ -98,7 +101,8 @@ typedef struct device3_quat_t device3_quat_type;
|
|||
typedef void (*device3_event_callback)(
|
||||
uint64_t timestamp,
|
||||
device3_event_type event,
|
||||
const device3_ahrs_type* ahrs
|
||||
const device3_ahrs_type* ahrs,
|
||||
const device3_correction_type* correction
|
||||
);
|
||||
|
||||
struct device3_t {
|
||||
|
@ -127,6 +131,7 @@ struct device3_t {
|
|||
device3_event_callback callback;
|
||||
device3_calibration_type* calibration;
|
||||
device3_filters_type filters;
|
||||
device3_correction_type* correction;
|
||||
};
|
||||
|
||||
typedef struct device3_t device3_type;
|
||||
|
@ -147,7 +152,8 @@ device3_vec3_type device3_get_earth_acceleration(const device3_ahrs_type* ahrs);
|
|||
|
||||
device3_vec3_type device3_get_linear_acceleration(const device3_ahrs_type* ahrs);
|
||||
|
||||
device3_quat_type device3_get_orientation(const device3_ahrs_type* ahrs);
|
||||
device3_quat_type device3_get_orientation(const device3_ahrs_type* ahrs,
|
||||
const device3_correction_type* correction);
|
||||
|
||||
device3_vec3_type device3_get_euler(device3_quat_type quat);
|
||||
|
||||
|
|
Reference in a new issue