From 4a39424d6b5900e851344bcc03b2260b874b0cb8 Mon Sep 17 00:00:00 2001 From: Shiv Date: Tue, 29 Jun 2021 17:14:10 +0530 Subject: [PATCH] Copter: added comments to include libraries in copter.h and attitude.cpp fixed typo in a comment and added more comments for included libraries in copter.h and fixed a comment in attitude.cpp --- ArduCopter/Attitude.cpp | 2 +- ArduCopter/Copter.h | 68 ++++++++++++++++++++--------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/ArduCopter/Attitude.cpp b/ArduCopter/Attitude.cpp index 57cd97597f..ddace6d25f 100644 --- a/ArduCopter/Attitude.cpp +++ b/ArduCopter/Attitude.cpp @@ -8,7 +8,7 @@ // called at 100hz void Copter::update_throttle_hover() { - // if not armed or landed exit + // if not armed or landed or on standby then exit if (!motors->armed() || ap.land_complete || standby_active) { return; } diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 6bf040c13f..0ed08e0663 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -28,46 +28,46 @@ #include // Common dependencies -#include -#include -#include -#include +#include // Common definitions and utility routines for the ArduPilot libraries +#include // Library having the implementation of location class +#include // A system for managing and storing variables that are of general interest to the system. +#include // library for Management for hal.storage to allow for backwards compatible mapping of storage offsets to available storage // Application dependencies -#include -#include // ArduPilot Mega Flash Memory Library -#include // ArduPilot Mega Vector/Matrix math Library -#include // interface and maths for accelerometer calibration -#include // ArduPilot Mega Inertial Sensor (accel & gyro) Library -#include -#include // Mission command library -#include // Attitude control library -#include // 6DoF Attitude control library -#include // Attitude control library for traditional helicopter -#include // Position control library -#include // AP Motors library -#include // statistics library -#include // Filter library +#include // Library for Interface definition for the various Ground Control System +#include // ArduPilot Mega Flash Memory Library +#include // ArduPilot Mega Vector/Matrix math Library +#include // interface and maths for accelerometer calibration +#include // ArduPilot Mega Inertial Sensor (accel & gyro) Library +#include // AHRS (Attitude Heading Reference System) interface library for ArduPilot +#include // Mission command library +#include // Attitude control library +#include // 6DoF Attitude control library +#include // Attitude control library for traditional helicopter +#include // Position control library +#include // AP Motors library +#include // statistics library +#include // Filter library #include // needed for AHRS build -#include // needed for AHRS build -#include // ArduPilot Mega inertial navigation library -#include // ArduCopter waypoint navigation library -#include -#include // circle navigation library -#include // ArduPilot Mega Declination Helper Library +#include // needed for AHRS build +#include // ArduPilot Mega inertial navigation library +#include // ArduCopter waypoint navigation library +#include // ArduCopter Loiter Mode Library +#include // circle navigation library +#include // ArduPilot Mega Declination Helper Library #include // RC input mapping library -#include // Battery monitor library -#include // Landing Gear library +#include // Battery monitor library +#include // Landing Gear library #include // Pilot input handling library #include // Heli specific pilot input handling library -#include -#include -#include -#include -#include -#include -#include -#include +#include // ArduPilot motor arming library +#include // ArduPilot Smart Return To Launch Mode (SRTL) library +#include // temperature calibration library +#include // ArduCopter autotune library. support for autotune of multirotors. +#include // ArduPilot parachute release library +#include // Crop sprayer library +#include // ADS-B RF based collision avoidance module library +#include // ArduPilot proximity sensor library // Configuration #include "defines.h"