Browse Source

Rover: include fix in mode.h

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
master
Shiv Tyagi 3 years ago committed by Peter Barker
parent
commit
a8a952d656
  1. 14
      Rover/Rover.h
  2. 1
      Rover/mode.cpp
  3. 10
      Rover/mode.h
  4. 1
      Rover/mode_acro.cpp
  5. 1
      Rover/mode_auto.cpp
  6. 1
      Rover/mode_follow.cpp
  7. 1
      Rover/mode_guided.cpp
  8. 1
      Rover/mode_hold.cpp
  9. 1
      Rover/mode_loiter.cpp
  10. 1
      Rover/mode_manual.cpp
  11. 1
      Rover/mode_rtl.cpp
  12. 1
      Rover/mode_simple.cpp
  13. 1
      Rover/mode_smart_rtl.cpp
  14. 1
      Rover/mode_steering.cpp

14
Rover/Rover.h

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

1
Rover/mode.cpp

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

10
Rover/mode.h

@ -1,14 +1,6 @@
#pragma once #pragma once
#include <stdint.h> #include "Rover.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"
// pre-define ModeRTL so Auto can appear higher in this file // pre-define ModeRTL so Auto can appear higher in this file
class ModeRTL; class ModeRTL;

1
Rover/mode_acro.cpp

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

1
Rover/mode_auto.cpp

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

1
Rover/mode_follow.cpp

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

1
Rover/mode_guided.cpp

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

1
Rover/mode_hold.cpp

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

1
Rover/mode_loiter.cpp

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

1
Rover/mode_manual.cpp

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

1
Rover/mode_rtl.cpp

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

1
Rover/mode_simple.cpp

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

1
Rover/mode_smart_rtl.cpp

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

1
Rover/mode_steering.cpp

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

Loading…
Cancel
Save