it is a bit confusing how accelerometer and gyroscope data are used in the Madgwick AHRS implementation. When the data are enumerated over, the naming of acc and gyro seems to be swapped. Eventually, two and three lines below this is compensated for by calling:
gyro=acc_val,
acc=gyro_val,
but would it not make more sense to just change the zip order, e.g., for i, (acc_val, gyro_val) in enumerate(zip(acc, gyro)): and have:
Dear all,
it is a bit confusing how accelerometer and gyroscope data are used in the Madgwick AHRS implementation. When the data are enumerated over, the naming of acc and gyro seems to be swapped. Eventually, two and three lines below this is compensated for by calling:
but would it not make more sense to just change the zip order, e.g.,
for i, (acc_val, gyro_val) in enumerate(zip(acc, gyro)):
and have:Best regards, Robbin