Rover: include fix in mode.h

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
This commit is contained in:
Shiv Tyagi 2022-08-19 16:25:01 +05:30 committed by Peter Barker
parent f8c1c3309d
commit a8a952d656
14 changed files with 11 additions and 25 deletions

View File

@ -19,6 +19,7 @@
#include <cmath>
#include <stdarg.h>
#include <stdint.h>
// Libraries
#include <AP_Common/AP_Common.h>
@ -37,18 +38,21 @@
#include <AP_Logger/AP_Logger.h>
#include <AP_OSD/AP_OSD.h>
#include <AR_Motors/AP_MotorsUGV.h>
#include <AP_Mission/AP_Mission.h>
#include <AP_Mission/AP_Mission_ChangeDetector.h>
#include <AR_WPNav/AR_WPNav_OA.h>
// Configuration
#include "defines.h"
#include "config.h"
#if AP_SCRIPTING_ENABLED
#include <AP_Scripting/AP_Scripting.h>
#endif
// Local modules
#include "mode.h"
#include "AP_Arming.h"
#include "sailboat.h"
// Configuration
#include "config.h"
#include "defines.h"
#if ADVANCED_FAILSAFE == ENABLED
#include "afs_rover.h"
#endif
@ -58,6 +62,8 @@
#include "AP_Rally.h"
#include "RC_Channel.h" // RC Channel Library
#include "mode.h"
class Rover : public AP_Vehicle {
public:
friend class GCS_MAVLINK_Rover;

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
Mode::Mode() :

View File

@ -1,14 +1,6 @@
#pragma once
#include <stdint.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <AP_Math/AP_Math.h>
#include <AP_Mission/AP_Mission.h>
#include <AP_Mission/AP_Mission_ChangeDetector.h>
#include <AR_WPNav/AR_WPNav_OA.h>
#include "defines.h"
#include "Rover.h"
// pre-define ModeRTL so Auto can appear higher in this file
class ModeRTL;

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
void ModeAcro::update()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
#define AUTO_GUIDED_SEND_TARGET_MS 1000

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
// initialize follow mode

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
bool ModeGuided::_enter()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
void ModeHold::update()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
bool ModeLoiter::_enter()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
void ModeManual::_exit()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
bool ModeRTL::_enter()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
void ModeSimple::init_heading()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
bool ModeSmartRTL::_enter()

View File

@ -1,4 +1,3 @@
#include "mode.h"
#include "Rover.h"
void ModeSteering::update()