Jump to content

Fr Robert Ballecer, SJ I 'm almost finished rebuilding my Quadcopter using the ZMR250 frame an...


G+_T Burns
 Share

Recommended Posts

Fr. Robert Ballecer, SJ I'm almost finished rebuilding my Quadcopter using the ZMR250 frame and the ZMR PDB and I'm ready to power it up and configure the Flight Controller (Flip 1.5). So, I've looked at all the configuration utilites like MultiwiiConf, WinGui, and Baseflight, but I can't find an option to rotate the flight controller 90 degrees CCW (so I can easily access the USB port without disassembly). Do I have to use the CLI to set this? If so, what command do I use?

 

I'm so close to getting this up in the air after 4 months of waiting to rebuild this thing, I would love an answer! Thanks KH community.

Link to comment
Share on other sites

I just built the Diatone 150 using a Flip 1.5 and am wanting to rotate mine 90 degrees as well. From what I have read, you need to un comment the FORCE_ACC_ORIENTATION AND FORCE_GYRO_ORIENTATION in the config.h file. You would change the X and Y settings. Note sure yet what to change them too. Mine are Y and -X for ACC and -Y and X for GYRO. Im going to try different combos and see what happens.

Link to comment
Share on other sites

The answer seems to be that it is NOT possible to change this setting through the Config tools like MultiWiiConf or WinGui. It has to be done by editing config.h through the Arduino compiler. The actual line of code looks like:

#define FORCE_ACC_ORIENTATION(X, Y, Z)  {imu.accADC[ROLL]  =  Y; imu.accADC[PITCH]  = -X; imu.accADC[YAW]  = Z;}

 

You have change the values of ROLL, PITCH and YAW. Don't let my comments below confuse you. You don't change the X, Y, Z in the parentheses but after the equals sign of each command (ROLL, PITCH, YAW). I left the YAW value alone.

 

I ended up rotating my FC CCW 90 degrees so my settings were:

FORCE_ACC_ORIENTATION -Y, X, Z ;

FORCE_GYRO_ORIENTATION   X, Y, -Z;

and since I have the Magnetometer,

MAG_ORIENTATION to Y, -X, -Z.

 

 If you rotate it 90 degrees CW, your settings would be :

FORCE_ACC_ORIENTATION Y, -X, Z ;

FORCE_GYRO_ORIENTATION   X, Y, -Z;

MAG_ORIENTATION to -Y, X, -Z.

 

A Full 180 would be:

FORCE_ACC_ORIENTATION X, Y, Z ;

FORCE_GYRO_ORIENTATION   -Y, X, -Z;

MAG_ORIENTATION to -X, -Y, -Z.

 

I hope this helps someone else. Enjoy!

Link to comment
Share on other sites

 Share

×
×
  • Create New...