I am attempting to build my first copter using Ardupilot, but I ran into an issue that I am not able to solve. My compass wont calibrate; the green bar for compass/mag calibration refuses to move no matter what I try.
What I am using:
* Speedybee f405 v4 FC
* HGLRC M100-5883 compass and mag
Yes they are, but I am not sure that the compass is set in the same direction as the FC (couldnât find out how to check, so I assumed). I also donât know how to turn the compass in mission planner because I couldnât find how. Do you know how to check if the compass is facing the right way?
This is probably the error. I didnât check if the compass is set the correct way because I couldnât find how to do so. Do you know how to check if the compass is facing the right way?
Ceramic is up. Normally thereâs an arrow or something on the unit to give some hint as to itâs direction, but looking on their website I donât see anything to even hint. Silly.
Generally I would say the connector is either the front or the back. Pick one.
Use can use COMPASS_AUTO_ROT and it will figure out the direction for you.
I find you will be able to tell by looking at the hud, if the comp is backwards pitch is reversed ect⌠google your compass/mag, even if the manufacturer has no docâs it may be out there.
$40+ gpsâs usually have an arrow. but with a known good one you can easily figure any gps/comp out, consider it a tool
Thank you for the reply. I visited the website you linked and got confused on the COMPASS_AUTO_ROT part. The website says that compass offsets are determined automatically, but the COMPASS_AUTO_ROT says you have to enable auto offset determination, so I tried them both. Except the COMPASS_AUTO_ROT, which I donât know if I did correctly since I could not find how to enable/ change the value to 2.
As for the the GPS lock part, when I visit the failsafe tab it confirms that I have 3D fix. Also the position on the map shows exactly where I am at.
I would also assume that I am getting compass data since I have flown by GPS in INAV before with this exact setup.
Firstly I tried to just calibrate the compass without doing anything extra. I sat there twisting the drone for 8 minutes, but the bar or percentage did not move at all.
Secondly I attempted to enable âauto compass offsetâ in the same compass calibration tab, again I sat there for about 8 minutes turning the drone on all axisâs, however, nothing budget.
Thirdly I tried to find how to enable COMPASS_AUTO_ROT, but there was no success.
Sorry for the very noob question; I am really struggling with this. Thank you for helping me out.
Itâs enabled by default, you donât have to do anything.
Sounds like the compass isnât being recognized at all. Post a screen shot of the HWID screen in Mission Planner.
The screenshot above happens when I connect the quad without waiting for satellite connection.
The second image is when I wait for satellite connection then connect the drone to Mission Planner.
Thank you for the suggestion. My flight controller only supports one I2C and I have the GPS/compass connected to it, nothing else. I am ordering a different GPS/compass and flight controller that I got recommended. Hopefully something was wrong with either or both of those two. Other than getting different hardware, I have no other ideas on what could possibly be wrong.
Both of your screenshots show the Baro also on the I2C so ânothing elseâ is not correct. Also the second screenshot shows that the externall compass was detected. As it knows details like type and device ID the HW is working and it is probably not an HW issue
Try setting BRD_BOOT_DELAY,2000 to see if that GPS and compass is reliably detected then.
Also some of the small flight controllers dont power up the accessories (like GPS) until a battery is connected - USB wont do the job.