Testing APM - Loiter and RTL Drift South Continuously

Hi, I am testing my APM and for some reason when I switch it into Loiter or RTL it will continuously drift south until it is on the edge of my comfort zone and I take control again (300ft maybe). 

The first circle of Loiter and RTL look good but the second is a little south and after 4 or 5 circles it way off and doesn't seem to be heading back.  It does seem to be able to "fly" the plane well (PID settings seem right) Stabilize and FBW-A work great.  It just seems to have a problem with navigation like the GPS points are moving south or something.

The wind was blowing south about 8 MPH but the plane didn't have any trouble flying up wind when told to manually and was making nice circles when in Loiter or RTL they just didn't keep centered on the right location or even return to the correct center once the got a long way south.

I am flying a basic Bixler with the APM mounted in a Bixler Chassis. I did have a camera on there too for some added weight but Stabilize and FBW-A didn't seem to mind the weight.  

I have noticed that when on the ground and hooked up to an XBee (my xbee has very very limited range) that the compass seems to be off.  It has the plane pointing in the almost opposite direction.  I have checked many times to make sure the APM (new purple v2 board) is pointing in the correct orientation in the plane.  Could the Magnets from the chassis be affecting the compass?  could an incorrect compass cause loiter to continuously drift south?

THANKS A LOT if you help!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Ok, so while on the ground for all of this testing...I tried the calibration procedure many times while APM was in the plane and got wildly different settings and no completely funtional compass results.

    I took the APM out of the chassis containing the magnets and away from the plane with the magnets, ran the calibration procedure and got excellent results and responsiveness from the compass. I brought the chassis close again and the reading skewed without moving the chip and then was no longer accurate or very responsive.

    So... I guess my first step is to remove the magenets from the chassis and hold it in another way as to not interfere with the electronics. My second step is to fly again and determine if my gains need to be increased in order to give more navigational authority.

    The only question I still have is if the winds are to strong for my "gain settings" and I don't have enough navigational authority will the plane still circle and start drifting down wind while circling or will it turn up wind (towards the waypoint) but just not reach it?
  • Yea, the wind was blowing to the south and a bit stronger than other days I have tested (maybe 10 mph). I did load the bixler config file and read through the manual files but when the stock bixler configuration worked so well for FBW-A and Stabalize I didn't go any further with tuning and maybe I should. I did have a camera on there which would add a little weight but other than that it should be the same as every other Bixler with chassis and AMPv2.

    What you suggest sounds very likely and I will look into "turning up my gains". I guess I got confused when the airplane kept circling. I guess I thought it would not circle but head straight towards a loiter point or RTL point if it got to far off due to wind or whatever.
  • 3D Robotics

    Did you calibrate your compass in the Mission Planner?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: On May 22, we're returning to in-person AI @DIYRobocar racing at @circuitlaunch. The Amazon @awscloud DeepRacer team will be pr…
yesterday
DIY Robocars via Twitter
RT @breadcentric: On my CV: Hobbies: Training bananas to race on tracks #AWSDeepRacer #DeepRacer https://t.co/MKe14hNyux
yesterday
DIY Robocars via Twitter
RT @breadcentric: See how the April AWS DeepRacer races have ended and a couple bits of news: https://blog.deepracing.io/2021/05/09/aws-deepracer-league-2021-update-11-end-of-april-special/ #AWSDeepRacer #Machin…
Monday
DIY Robocars via Twitter
RT @sunilmallya: Representation Learning +Instance Transfer to learn new reward functions along with advantage based filtering of new exper…
Monday
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
More…