AP_Airspeed: change namespace of MultiCopter and FixedWing params

this stops the libraries knowing anything about AP_Vehicle
This commit is contained in:
Peter Barker 2022-09-30 09:10:39 +10:00 committed by Andrew Tridgell
parent 877b1413ea
commit 533b9e12b1
2 changed files with 3 additions and 4 deletions

View File

@ -16,10 +16,10 @@
* AP_Airspeed.cpp - airspeed (pitot) driver
*/
#include <AP_Vehicle/AP_Vehicle_Type.h>
#include "AP_Airspeed.h"
#include <AP_Vehicle/AP_Vehicle_Type.h>
// Dummy the AP_Airspeed class to allow building Airspeed only for plane, rover, sub, and copter & heli 2MB boards
// This could be removed once the build system allows for APM_BUILD_TYPE in header files
#ifndef AP_AIRSPEED_DUMMY_METHODS_ENABLED
@ -37,7 +37,6 @@
#include <SRV_Channel/SRV_Channel.h>
#include <AP_Logger/AP_Logger.h>
#include <utility>
#include <AP_Vehicle/AP_Vehicle.h>
#include "AP_Airspeed_MS4525.h"
#include "AP_Airspeed_MS5525.h"
#include "AP_Airspeed_SDP3X.h"

View File

@ -22,7 +22,7 @@
#if AP_AIRSPEED_NMEA_ENABLED
#include <AP_Vehicle/AP_Vehicle.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#if APM_BUILD_TYPE(APM_BUILD_Rover) || APM_BUILD_TYPE(APM_BUILD_ArduSub)
#include "AP_Airspeed.h"