Closed GoogleCodeExporter closed 8 years ago
The missed WPs may also be related to the heading change in the turns. I
originally tried figure-8 paths in the missions and found most WPs were missed.
I haven't the fig 8s after the 2.0 beta release.
The above mission will sometimes skip loiter turns. It nearly always misses WP1
in the manner shown above.
Original comment by philcole...@gmail.com
on 13 Mar 2011 at 7:01
Hi Phil,
I am aware of this issue, although I have never been able to duplicate it. It
is not clear if the issue is on the APM side or the ArduPilotSim side.... At
any rate it appears to be simply a case of the HIL reported GPS location to
occasionally glitch to some other value. The other user reporting this said it
always glitched to the home location. That does not appear to be what I see in
your pictures, however, so that is at least a helpful clue.
Original comment by dewei...@gmail.com
on 14 Mar 2011 at 9:46
The far ends of the jump seem to be a constant offset from the path. In the
example shown, I traced them to a sequence of points over Pacifica.
If there is a trace file stored away somewhere I could send that. I tried to
find where HK keeps its log files, but they're hidden somewhere non-obvious.
Next time I'll try to grab an APM log - we should see the errored coordinates
in that.
I might be able to get a serial trace as well, but I suspect the bogus data is
coming either from Xplane itself, of the data is mangled in the Planner
simulator app. I don't know how to trace the Xplane output data. I did try to
use the perl adapter a few months ago, but couldn't get it to work.
I don't remember seeing this issue with 1.02 and the older Planner versions.
It's been the same Xplane version all along.
Original comment by philcole...@gmail.com
on 15 Mar 2011 at 1:40
I have seen this as well. i did do some tracking back into it and it only
happens east west, no idea why though, what i send to the apm and what i get
back from the apm differ.
Original comment by Meee...@gmail.com
on 15 Mar 2011 at 11:26
Still present in 2.01.
Looking at the errors, they seem to be ~8 minute jumps in longitude in my case
(from SFO to Pacifica), so I'm guessing it's something like a truncation or
rounding thing involved in type conversions or casting between DMS and decimal
degrees/minutes or similar without actually looking at the code. I have the
planner source building and running, so I may take a look if it's too wet to
fly this weekend.
Original comment by philcole...@gmail.com
on 23 Mar 2011 at 8:55
i think this is related to issue 303
Original comment by Meee...@gmail.com
on 29 Mar 2011 at 8:32
I updated APM and library to 2529 and 1829. I have the ADC and FastSerial
changes. It's still pretty much the same.
Original comment by philcole...@gmail.com
on 29 Mar 2011 at 3:21
ok i have tracked it back to something in the planner. somehow the big/little
endian is being stuffed up.
Original comment by Meee...@gmail.com
on 1 Apr 2011 at 12:22
Original comment by Meee...@gmail.com
on 1 Apr 2011 at 12:22
ok i have identified the problem and will fix later tonight.
this is a value that causes a problem
float value = 11.3532705f;
hex 0xffa63541
converting this to 0x4135a6ff is causing the problem because 0xff is invalid
for a float.
0x4135a6ff is actualy NaN
the work around will be to convert 0xff to 0xfe
Original comment by Meee...@gmail.com
on 1 Apr 2011 at 4:31
OK latest planner should fix this, all endian stuff is now swaped properly. no
workarounds.
Original comment by Meee...@gmail.com
on 2 Apr 2011 at 3:15
That seems to have fixed it. Planner Build 0.4.4110.29954
Thanks.
Original comment by philcole...@gmail.com
on 4 Apr 2011 at 12:43
Original comment by Meee...@gmail.com
on 4 Apr 2011 at 5:50
Original issue reported on code.google.com by
philcole...@gmail.com
on 13 Mar 2011 at 6:53