I'm working to set up my multiwii 2.5 FC.
I've read on the site that the magnometer should give the following responses: TILT the MULTI to the RIGHT, MAG_ROLL goes up (mine goes down), MAG_Z goes down (mine goes up). TILT the MULTI forward, MAG_PITCH goes up (mine goes down), MAG_Z goes down (mine goes up). LEVEL the MULTI (flat placed). MAG_Z is positive (mine is negative). Everything is opposite. What should I do?
If the quad has 4 x neodymium magnets on the arms that are only 3 inches away from the sensor, how is it ever going to work anyway? The quad seems to know when I rotate it and give it roll and pitch inputs, but I suspect it is getting all that from the gyro and the accelerometer..??
Having a good time learning about the board and how it works. The mag has got me stumped though.
I think I need to figure out how to edit the config.h file. I have no idea how to do it. I can't figure out what to download..
Cheers
Magnometer responses
Re: Magnometer responses
I've spent all last night and half of today and made good progress. I've edited config.h per instructions on the site. The GUI shows ACC and Gyro roll, pitch and yaw working perfectly. Mag roll and pitch give reversed values (they increase when they should decrease). Mag yaw is working fine.
The Mag yroll and pitch problems are the last ones I need to iron out before I go flying for the first time. If anyone can help it'd be great.
I'll get onto the GPS installation later. I'm keen to sort that too but it's a job that'll have to wait. I'm too excited to get flying!
The Mag yroll and pitch problems are the last ones I need to iron out before I go flying for the first time. If anyone can help it'd be great.
I'll get onto the GPS installation later. I'm keen to sort that too but it's a job that'll have to wait. I'm too excited to get flying!
Re: Magnometer responses
Hopefully answering myself helps others with the same problems..!!
You can reverse any sensor by putting a minus in front of it in config.h. note the minus signs in front of mag x and y below. That fixed it. I'm good to go!
#define FORCE_MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -X; magADC[PITCH] = -Y; magADC[YAW] = Z;}
You can reverse any sensor by putting a minus in front of it in config.h. note the minus signs in front of mag x and y below. That fixed it. I'm good to go!
#define FORCE_MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -X; magADC[PITCH] = -Y; magADC[YAW] = Z;}