mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:53:34 +08:00
FlightTasks: corrected comment and sorted out unnecessary includes
This commit is contained in:
@@ -75,7 +75,7 @@ bool FlightTaskManual::updateInitialize()
|
||||
|
||||
bool FlightTaskManual::_evaluateSticks()
|
||||
{
|
||||
/* Sticks are rescaled linearly and exponentially from [0,1] to [-1,1] */
|
||||
/* Sticks are rescaled linearly and exponentially to [-1,1] */
|
||||
if ((_time_stamp_current - _sub_manual_control_setpoint->get().timestamp) < _timeout) {
|
||||
|
||||
/* Linear scale */
|
||||
|
||||
@@ -36,9 +36,7 @@
|
||||
*/
|
||||
|
||||
#include "FlightTaskManualAltitude.hpp"
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <float.h>
|
||||
#include <lib/geo/geo.h>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
*/
|
||||
|
||||
#include "FlightTaskManualAltitudeSmooth.hpp"
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <float.h>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
@@ -63,5 +61,4 @@ void FlightTaskManualAltitudeSmooth::_updateSetpoints()
|
||||
|
||||
/* Check for altitude lock*/
|
||||
_updateAltitudeLock();
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "FlightTaskManualPosition.hpp"
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <float.h>
|
||||
#include <lib/geo/geo.h>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
*/
|
||||
|
||||
#include "FlightTaskManualPositionSmooth.hpp"
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <float.h>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
|
||||
#include "FlightTaskManualStabilized.hpp"
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <float.h>
|
||||
#include <lib/geo/geo.h>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user