[Help] Sensor orientation reversed
[Help] Sensor orientation reversed
I recently bought a multiwii which has acc,gyro and mag sensors. I bought it from here. But in GUI roll and and pitch direction always reversed. I try to edit the individual sensor orientation in config.h. I give a minus sign but the direction still reversed. What should i do then?
Re: [Help] Sensor orientation reversed
a - rotate board physically, or
b - move the X,Y,Z around
b - move the X,Y,Z around
Re: [Help] Sensor orientation reversed
Ya, i have rotate the board, if i roll the board right the GUI report left roll and pitch too.
so how to fix it?
so how to fix it?
Re: [Help] Sensor orientation reversed
invert +- sign for roll&pitch for both gyro&acc
Re: [Help] Sensor orientation reversed
I have change them, but nothing happened. Any idea?
Re: [Help] Sensor orientation reversed
no, if nothing happens with changing signs, then I have no idea.
Here is what I use in config.h for a rotated board
Here is what I use in config.h for a rotated board
Code: Select all
// default:
// #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = -Y; accADC[PITCH] = X; accADC[YAW] = Z;}
// #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = -X; gyroADC[PITCH] = -Y; gyroADC[YAW] = -Z;}
#define FORCE_ACC_ORIENTATION(X, Y, Z) {imu.accADC[ROLL] = -X; imu.accADC[PITCH] = -Y; imu.accADC[YAW] = Z;}
#define FORCE_GYRO_ORIENTATION(X, Y, Z) {imu.gyroADC[ROLL] = Y; imu.gyroADC[PITCH] = -X; imu.gyroADC[YAW] = -Z;}
Re: [Help] Sensor orientation reversed
I just found them, I have to change the orientation in def.h not in config.h and it works!
Thanks
Thanks
-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: [Help] Sensor orientation reversed
bump this for reference
Re: [Help] Sensor orientation reversed
Not real good.
Setting/overriding sensors orientations with the override.xy from config.h works just fine.
Setting/overriding sensors orientations with the override.xy from config.h works just fine.
Re: [Help] Sensor orientation reversed
I have a question. If i inverse the orientation on
Gyro and acc orientation in def.h should i also inverse the mag orientation for incorrect roll?
Gyro and acc orientation in def.h should i also inverse the mag orientation for incorrect roll?