Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nav_airspeed] tune navigation airspeeds for diffent phases of the fl…
…ightplan
- Loading branch information
Showing
5 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="nav"> | ||
<doc> | ||
<description>NAV AIRSPEED. | ||
Navigation Airspeeds to be called from the flightplan. | ||
</description> | ||
</doc> | ||
<settings> | ||
<dl_settings name="control"> | ||
<dl_settings name="airsp"> | ||
<dl_setting max="30" min="10" step="0.5" var="set_airspeed_nominal" shortname="nominal"/> | ||
<dl_setting max="30" min="10" step="0.5" var="set_airspeed_tracking" shortname="tracking"/> | ||
<dl_setting max="30" min="10" step="0.5" var="set_airspeed_glide" shortname="glide"/> | ||
<dl_setting max="80" min="-10" step="0.5" var="set_takeoff_pitch" shortname="takeoff_pitch" unit="rad" alt_unit="deg" /> | ||
<dl_setting max="80" min="-10" step="0.5" var="set_flare_pitch" shortname="flare_pitch" unit="rad" alt_unit="deg"/> | ||
</dl_settings> | ||
</dl_settings> | ||
</settings> | ||
<header> | ||
<file name="nav_airspeed.h"/> | ||
</header> | ||
<makefile> | ||
<file name="nav_airspeed.c"/> | ||
</makefile> | ||
</module> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (C) 2014 OpenUAS | ||
* | ||
* This file is part of paparazzi. | ||
* | ||
* paparazzi is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2, or (at your option) | ||
* any later version. | ||
* | ||
* paparazzi is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with paparazzi; see the file COPYING. If not, write to | ||
* the Free Software Foundation, 59 Temple Place - Suite 330, | ||
* Boston, MA 02111-1307, USA. | ||
* | ||
*/ | ||
|
||
#include "nav_airspeed.h" | ||
#include "generated/airframe.h" | ||
|
||
#ifndef NOMINAL_AIRSPEED | ||
#error Please define NOMINAL_AIRSPEED in airframe file | ||
#endif | ||
|
||
#ifndef TRACKING_AIRSPEED | ||
#define TRACKING_AIRSPEED NOMINAL_AIRSPEED | ||
#endif | ||
|
||
#ifndef GLIDE_AIRSPEED | ||
#define GLIDE_AIRSPEED NOMINAL_AIRSPEED | ||
#endif | ||
|
||
#ifndef TAKEOFF_PITCH_ANGLE | ||
#define TAKEOFF_PITCH_ANGLE 0 | ||
#endif | ||
|
||
#ifndef FLARE_PITCH_ANGLE | ||
#define FLARE_PITCH_ANGLE 0 | ||
#endif | ||
|
||
float set_airspeed_nominal = NOMINAL_AIRSPEED; | ||
float set_airspeed_tracking = TRACKING_AIRSPEED; | ||
float set_airspeed_glide = GLIDE_AIRSPEED; | ||
float set_takeoff_pitch = TAKEOFF_PITCH_ANGLE; | ||
float set_flare_pitch = FLARE_PITCH_ANGLE; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2014 OpenUAS | ||
* | ||
* This file is part of paparazzi. | ||
* | ||
* paparazzi is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2, or (at your option) | ||
* any later version. | ||
* | ||
* paparazzi is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with paparazzi; see the file COPYING. If not, write to | ||
* the Free Software Foundation, 59 Temple Place - Suite 330, | ||
* Boston, MA 02111-1307, USA. | ||
* | ||
*/ | ||
|
||
/** \file nav_airspeed.h | ||
* | ||
* NAV Tunable standard airspeed settings to be called from the flight plan | ||
*/ | ||
|
||
#ifndef NAV_AIRSPEED_H | ||
#define NAV_AIRSPEED_H | ||
|
||
#include "std.h" | ||
#include "generated/airframe.h" | ||
|
||
extern float set_airspeed_nominal; | ||
extern float set_airspeed_tracking; | ||
extern float set_airspeed_glide; | ||
extern float set_takeoff_pitch; | ||
extern float set_flare_pitch; | ||
|
||
#endif |