Page 1 of 1
final stage of setup - please help - sensor orientation inve
Posted: Fri Mar 29, 2013 2:04 pm
by bazb_85
hi all,
well i made some progress , i now get all sensor readings. i will write a guide for this board once its working..
my only problem now is,
if i tilt the quadcopter forward the rear props spin up causing flips..
the axis of the sensors is correct, but the way they are processes is inverted, how can this be switched around?
ive looked at the orientation setting in config.h and sensors, but the small changes i made to x , y, z (for example changing one to -) does not seem to make things better!
Could anyone offer better guidance on switching the polarity of the axis readings??
Many thanks if you can! you are a true expert!
Re: final stage of setup - please help - sensor orientation
Posted: Fri Mar 29, 2013 2:51 pm
by bazb_85
bit more info, my board is using the
#define MPU6050 //combo + ACC
sensor.
when i try to modify
#define GYRO_ORIENTATION
or
//#define ACC_ORIENTATION
they effect each other..
the quad copter is correcting correctly for change in roll, but the pitch reaction is reversed, i just cant seem to find the correct combinations here, and ive tried so many!
Re: final stage of setup - please help - sensor orientation
Posted: Mon Apr 08, 2013 9:54 pm
by backyardflyer
If you know exactly your FC is then choose the correct board name from config.h.
For example "CRIUS_SE" it should assign the correct orientation for you.
If you are not sure about the board and need to assign the sensor orientation:
- Choose ACC and only enable one at a time (X, Y and Z)
- Check GYRO the same way.
On the GUI choose one sensor and one direction at a time.
Be aware of the direction on the board.
Re: final stage of setup - please help - sensor orientation
Posted: Mon Apr 08, 2013 10:03 pm
by tovrin
sounds to me like the sensor in question is your Gyro. the best way to single out exactly what is wrong is to use the gui.
1. connect to the gui so you can see the animated copter moving when you move the actual copter. make sure the copter shown is of the same config as yours (quad+ or quadx, etc)
2. line your copter up with the screen, front of copter facing screen, animation should show front of copter as up, and your horizons should all be flat, if not calibrate your sensors so they are. disable all sensors for the rest of the test. (except gyro which you can not disable and need)
3. lean your copter left and right, watch the screen, does it move the same, look at the roll horizon is it following you?
4. lean it up and down, watch your pitch this time, is it following you correctly?
if everything is correct in this test i would hazard a guess that you havent calibrated your ESC's properly and one or more of them is revving too high when trying to take off and causing the problem. use the //ESC_calib_can_not_fly tool in config.h
but i think you will find that something is amiss. when you do this.