RC_Channel: integrate visodom rename of requset_align_yaw_to_ahrs

This commit is contained in:
Randy Mackay 2023-01-20 16:22:43 +09:00 committed by Andrew Tridgell
parent 8336814607
commit 6114e1f2ea

View File

@ -1220,7 +1220,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
if (ch_flag == AuxSwitchPos::HIGH) {
AP_VisualOdom *visual_odom = AP::visualodom();
if (visual_odom != nullptr) {
visual_odom->align_sensor_to_vehicle();
visual_odom->request_align_yaw_to_ahrs();
}
}
break;