I installed the default firmware for SpeedyBee 405 AIO from here using STM32 Cube programmer. I have not made any changes to this firmware. As @aistaca pointed out, this FC needs to be mounted at 45 degrees. I noticed that if I use my motor 2 as the front of the FC(meaning if I execute roll/pitch/yaw using motor 2 as the front of the quad), then the horizon corresponds to the roll/pitch and yaw of the copter. The parameters below do not correct the board position.
@aistaca , could you please advise what should be the ahrs_orientation parameter value should be to correct my board orientation. I just understood your response, sorry
I may have made the wrong statement regarding ahrs_orientation parameter. I will check with my own board later when I get back home. Please standby.
Ardupilot default orientation is different than betaflight default set by speedybee (donât use speedybee manual). I think we should update the wiki doc
Now, from the HWDEF like what @dkemxr stated:
IMU Invensensev3 SPI:imu1 ROTATION_ROLL_180_YAW_135
If my math is correct, the real imu orientation is suppose to face the usb side, mounted upside down.
(my math is bad)
but that should set the default orientation shown in this picture (default as in roll 0 yaw 0 in the parameter as the firmware should translate the imu datas). Again, I will cross-check with my board later as I only have saved parameters from beta-5 at the moment
AHRS_ORIENTATION = 5 Worked! Thanks so much!! I have worked out the motor order. Thanks so much to offering your assistance to do so. I will be using @amilcarlucas Methodic configurator to configure this little beast