AP_Module: make AHRS attitude member variables private

This commit is contained in:
Peter Barker 2024-01-13 01:02:12 +11:00 committed by Peter Barker
parent 0275494042
commit bcf6578d56
1 changed files with 3 additions and 3 deletions

View File

@ -165,9 +165,9 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs)
state.quat[2] = q[2];
state.quat[3] = q[3];
state.eulers[0] = ahrs.roll;
state.eulers[1] = ahrs.pitch;
state.eulers[2] = ahrs.yaw;
state.eulers[0] = ahrs.get_roll();
state.eulers[1] = ahrs.get_pitch();
state.eulers[2] = ahrs.get_yaw();
Location loc;
if (ahrs.get_origin(loc)) {