RcCarCpp/lib/madgwickFilter/madgwickFilter.h
static inline void quat_add(struct quaternion * Sum, struct quaternion L, struct quaternion R){
    Sum -> q1 = L.q1 + R.q1;
    Sum -> q2 = L.q2 + R.q2;
    Sum -> q3 = L.q3 + R.q3;
    Sum -> q4 = L.q4 + R.q4;
}
//Adds two quaternions together and the sum is the pointer to another quaternion, Sum = L + R
Adds two quaternions together and the sum is the pointer to another quaternion, Sum = L + R
Adds two quaternions together and the sum is the pointer to another quaternion Sum = L + R
static inline void quat_add(struct quaternion * Sum, struct quaternion L, struct quaternion R){
    Sum -> q1 = L.q1 + R.q1;
    Sum -> q2 = L.q2 + R.q2;
    Sum -> q3 = L.q3 + R.q3;
    Sum -> q4 = L.q4 + R.q4;
}
static inline void quat_add ( struct quaternion * Sum , struct quaternion L , struct quaternion R ) { Sum -> q1 = L . q1 + R . q1 ; Sum -> q2 = L . q2 + R . q2 ; Sum -> q3 = L . q3 + R . q3 ; Sum -> q4 = L . q4 + R . q4 ; }
Adds two quaternions together and the sum is the pointer to another quaternion, Sum = L + R
Adds two quaternions together and the sum is the pointer to another quaternion Sum = L + R