Hi
On 29 August 2014 00:38, C Wong <
cwce...@gmail.com> wrote:
> Ben, I tried the virtual/fake GPS driver approach in 2.9.1 and yes ran into
> timing/update issues working with safety, home position assignment, and
> pre-arm checks... too tightly coupled code. Not sure what's changed in 3.1.x
> on up.
We did something similar with a UWB system back in 2.8, faked GPS -
the noise/latency model of the UWB system is actually pretty close to
GPS. Once you feed it an earth-frame origin the rest was fairly
straight-forward. I don't imagine VICON would be quite as easy,
indeed.
I put that task on hold (we have a vicon setup and wanted to use it
> as a cycle testing rig) to work on other s/w issues in our setup. Another
> way I've been pondering is throwing position updates right into
> AP_InertialNav and doing some data prep and wayside estimation, but we're
> going through a total rewrite of our onboard s/w to accommodate new
> [non-APM] hardware.
AP_IntertialNav has been largely (completely?) obsoleted by the new
EKF work. You're right though, it did provide a nice point at which
this kind of data could have been injected.
>
> Option 3 will work, aka use vicon only for position, not pose/attitude. A
> lot of the universities use it for both and get killed on the latencies (we
> did! see next paragraph)--copter goes unstable but the pro is that it's WAY
> easier to model and program for collision avoidance, etc...
Right, we tried using VICON for pose at my uni a little while back
(non-APM hardware); the update rate is fine but the (variable!)
wireless latency was not OK. I would recommend using Mocap for
position only unless you're really sure of your link solution.