fix for set_system_orientation writing invalid data to BNO
This commit is contained in:
parent
00944434d4
commit
432b8e2042
|
|
@ -2017,7 +2017,7 @@ bool BNO08x::set_system_orientation(float Qw, float Qx, float Qy, float Qz)
|
||||||
static_cast<uint32_t>(float_to_q30(Qw)) // W component
|
static_cast<uint32_t>(float_to_q30(Qw)) // W component
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!write_frs(BNO08xFrsID::SYSTEM_ORIENTATION, orientation_raw, sizeof(orientation_raw)))
|
if(!write_frs(BNO08xFrsID::SYSTEM_ORIENTATION, orientation_raw, sizeof(orientation_raw)/sizeof(uint32_t)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue