RcCarCpp/lib/madgwickFilter/madgwickFilter.h
static inline void quat_sub(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;
}
//Subtracts two quaternions together and the sum is the pointer to another quaternion, sum = L - R
Subtracts two quaternions together and the sum is the pointer to another quaternion, sum = L - R
Subtracts two quaternions together and the sum is the pointer to another quaternion sum = L - R
static inline void quat_sub(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_sub ( 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 ; }
Subtracts two quaternions together and the sum is the pointer to another quaternion, sum = L - R
Subtracts two quaternions together and the sum is the pointer to another quaternion sum = L - R