Menu
Forums
New posts
Search forums
What's new
New posts
New media
New media comments
New profile posts
Latest activity
Media
New media
New comments
Search media
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Search
Search titles only
By:
Search titles only
By:
Menu
Welcome DJI Spark Pilot!
Jump in and join our free Spark community today!
Sign up
Forums
DJI Spark Forums
Spark Discussions
GPS Tracker or something similar for fly aways
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Virtual1" data-source="post: 21202" data-attributes="member: 4084"><p>magnetic interference will affect the compass but should not affect the GPS. So it would know where to go, but not which direction it's facing. That's what creates the problem - it turns to face home, drives forward, and then discovers it's heading in the wrong direction. Now with sufficient "smarts" it could determine there is a compass problem and adjust course based on its current "track", but I have yet to see any programmer think of this and write their software to adjust for it, which is a bit depressing. (I'm a coder) What's more likely to happen is as it moves, the magnetic interference will go away or at least change and it will get different (and hopefully <em>correct</em>) compass bearings and adjust and head home. If it can avoid falling back into the same compass trap it was in earlier, you'll be fine. (it may make a large wide detour around the area of interference) Otherwise it might just make several short scoots around in the area as it struggles to find its way home, possibly getting stuck. The best answer to this is "GPS Track".</p><p></p><p>For anyone thinking of coding for this, what you do is when you notice track is significantly differing from course, you stop correcting the gyro from the magnetometer, (do NOT disable accelerometer) and start correcting the gyro based instead on the gps track. Keep that up until you go n seconds with the magnetometer mostly agreeing with the gps track, and then you can resume gyro updates from magnetometer. As long as you can get good GPS, that will get your autopilot out of a "magnetic trap". It may "fly a little drunk" while it's doing this, but it WILL be staggering its way back home.</p><p></p><p>DJI, forward this to your autopilot coders and confirm they are falling back to GPS Track in the event it is not agreeing with magnetometer readings. If they don't understand (or tell you I don't know what I'm talking about), feel free to put them in contact with me, as it will <em>really</em> help prevent fly-aways. I may need to teach your whippersnappers how to do compass sensor fusion <em>manually</em> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="Virtual1, post: 21202, member: 4084"] magnetic interference will affect the compass but should not affect the GPS. So it would know where to go, but not which direction it's facing. That's what creates the problem - it turns to face home, drives forward, and then discovers it's heading in the wrong direction. Now with sufficient "smarts" it could determine there is a compass problem and adjust course based on its current "track", but I have yet to see any programmer think of this and write their software to adjust for it, which is a bit depressing. (I'm a coder) What's more likely to happen is as it moves, the magnetic interference will go away or at least change and it will get different (and hopefully [I]correct[/I]) compass bearings and adjust and head home. If it can avoid falling back into the same compass trap it was in earlier, you'll be fine. (it may make a large wide detour around the area of interference) Otherwise it might just make several short scoots around in the area as it struggles to find its way home, possibly getting stuck. The best answer to this is "GPS Track". For anyone thinking of coding for this, what you do is when you notice track is significantly differing from course, you stop correcting the gyro from the magnetometer, (do NOT disable accelerometer) and start correcting the gyro based instead on the gps track. Keep that up until you go n seconds with the magnetometer mostly agreeing with the gps track, and then you can resume gyro updates from magnetometer. As long as you can get good GPS, that will get your autopilot out of a "magnetic trap". It may "fly a little drunk" while it's doing this, but it WILL be staggering its way back home. DJI, forward this to your autopilot coders and confirm they are falling back to GPS Track in the event it is not agreeing with magnetometer readings. If they don't understand (or tell you I don't know what I'm talking about), feel free to put them in contact with me, as it will [I]really[/I] help prevent fly-aways. I may need to teach your whippersnappers how to do compass sensor fusion [I]manually[/I] ;) [/QUOTE]
Verification
Post reply
Forums
DJI Spark Forums
Spark Discussions
GPS Tracker or something similar for fly aways