AC_Avoidance: add missing include

../../libraries/AC_Avoidance/AC_Avoidance_Logging.cpp: In member function 'void AP_OABendyRuler::Write_OABendyRuler(uint8_t, bool, float, float, bool, float, const Location&, const Location&) const':
../../libraries/AC_Avoidance/AC_Avoidance_Logging.cpp:23:46: error: 'ahrs' is not a member of 'AP'
   23 |         yaw         : (uint16_t)wrap_360(AP::ahrs().yaw_sensor * 0.01f),
      |                                              ^~~~
compilation terminated due to -Wfatal-errors.
This commit is contained in:
Peter Barker 2024-12-15 11:30:07 +11:00 committed by Peter Barker
parent 4c335e89a0
commit f26372b46e
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include "AP_OADijkstra.h" #include "AP_OADijkstra.h"
#include "AP_OABendyRuler.h" #include "AP_OABendyRuler.h"
#include <AP_Logger/AP_Logger.h> #include <AP_Logger/AP_Logger.h>
#include <AP_AHRS/AP_AHRS.h>
#if AP_OAPATHPLANNER_BENDYRULER_ENABLED #if AP_OAPATHPLANNER_BENDYRULER_ENABLED
void AP_OABendyRuler::Write_OABendyRuler(const uint8_t type, const bool active, const float target_yaw, const float target_pitch, const bool resist_chg, const float margin, const Location &final_dest, const Location &oa_dest) const void AP_OABendyRuler::Write_OABendyRuler(const uint8_t type, const bool active, const float target_yaw, const float target_pitch, const bool resist_chg, const float margin, const Location &final_dest, const Location &oa_dest) const