I am currently working on a Dead Reckoning project using ArduPilot and have been trying to test the available Dead Reckoning Lua script in SITL.
However, the script appears to have been written for an older ArduPilot version and is no longer functioning correctly with recent versions of ArduPilot and Mission Planner. When running SITL, the script either fails to load or encounters compatibility issues due to changes in the Lua API and firmware updates.
Could you please advise on:
Whether there is an updated version of the Dead Reckoning Lua script available.
Any API changes that need to be incorporated to make the script compatible with current ArduPilot release
I would appreciate any guidance, documentation, or example scripts that can help migrate the existing implementation to the latest firmware versions.
local wp_speed_up = Parameter("WPNAV_SPEED_UP") -- maximum climb rate in m/s from WPNAV_SPEED_UP
local wp_accel_z = Parameter("WPNAV_ACCEL_Z") -- maximum vertical acceleration in m/s from WPNAV_ACCEL_Z
I made an error in my previous post and associated (now closed) PR. The current script actually has the correct parameter names for the master branch (4.8-dev).
The changes noted above are a reversion to the 4.6 stable branch, and the script for that branch can be downloaded here: