LUA get_accel() help?

I’m trying to get the acceleration vector3f data in a lua script. I have ahrs:get_roll() , pitch, and yaw working, but ‘accel = ahrs:get_accel()’ does not work and gives errors preventing running. It’s mentioned in ardupilot/libraries/AP_Scripting/Docs/docs.lua but nowhere else. It also isn’t used in any of their provided examples. I can’t find this problem mentioned anywhere else. I really don’t want to calculate acceleration if it is provided somewhere. Any help would be appreciated. Thanks.

Hi Ethan,

I see that you have already found a solution in this thread on ArduPilot forum. The users on ArduPilot forum are far more experienced in such a topic, so it’s cool that you’ve reached out to them about this, too.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.