ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AP_ExternalAHRS_AdvancedNavigation

Open AN-DanielCook opened this issue 1 year ago • 5 comments

This PR Adds External AHRS support to Advanced Navigation Devices using the Advanced Navigation Packet Protocol.

when EAHRS_TYPE = 3 (AdNav) the new module will load and run. A SITL Emulator of a ANPP Device has also been added for easier testing in the absence of hardware.

AN-DanielCook avatar Mar 21 '23 05:03 AN-DanielCook

@AN-DanielCook great to see this driver, thanks. As @peterbarker says, this needs some substantial re-work. That re-work will be made much easier because you've done a simulator, which is great! If you need help with the re-work please reach out (though would need to be after the conference)

tridge avatar Mar 22 '23 07:03 tridge

Sorry I've only recently had some time to come back and apply changes to this. If you are happy with the structural changes in the driver i will apply them to the simulator also.

AN-DanielCook avatar Apr 24 '23 04:04 AN-DanielCook

@AN-DanielCook @peterbarker I've rebased, fixing conflicts and fixed a few other bugs. sim_vehicle.py now works like this: sim_vehicle.py -D -G --console --map -A --serial2=sim:AdNav Some key changes:

  • lat/lon was ordered opposite in driver and simulator. I've changed the simulator, but it could be the driver that is wrong
  • the simulator was sending 50Hz GPS, which is much too high. If the real device sends 50Hz GPS we will need to downsample in the driver
  • time handling was broken

tridge avatar Sep 21 '23 08:09 tridge

@AN-DanielCook I pushed a few fixes to this PR today

tridge avatar Dec 02 '23 01:12 tridge

@AN-DanielCook I've rebased this PR and fixed the conflict

tridge avatar Aug 15 '24 04:08 tridge