-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scheduling] harmonize efficiency scheduling modules (#3182)
- harmonize name - make a 'generic' module with basic linear scheduling - old ctrl_effectiveness_scheduling was very specific to cyfoam, so renamed - add falcon scheduler, related airframe will come later
- Loading branch information
1 parent
44a3abb
commit 68ddea1
Showing
17 changed files
with
465 additions
and
140 deletions.
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
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 was deleted.
Oops, something went wrong.
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,24 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="eff_scheduling_cyfoam" dir="ctrl"> | ||
<doc> | ||
<description> | ||
Interpolation of control effectiveness matrix for Cyfoam tailsitter. | ||
|
||
The configuration of Cyfoam is a tailsitter with 2 propellers | ||
blowing a wing with 2 flaps. A minimum amont of thrust is thus | ||
required to have enough control on moments, especially pitch moment. | ||
|
||
Two scheduling functions are available, controlled by the flag | ||
INDI_FUNCTIONS_RC_CHANNEL, which indicates the RC channel to be used. | ||
</description> | ||
</doc> | ||
<header> | ||
<file name="eff_scheduling_cyfoam.h"/> | ||
</header> | ||
<init fun="eff_scheduling_cyfoam_init()"/> | ||
<periodic fun="eff_scheduling_cyfoam_periodic()" freq="20"/> | ||
<makefile> | ||
<file name="eff_scheduling_cyfoam.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,24 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
<module name="eff_scheduling_falcon" dir="ctrl"> | ||
<doc> | ||
<description> | ||
Interpolation of control effectivenss matrix of the Falcon hybride plane | ||
|
||
The configuation of Falcon is a tailsitter with 4 propellers mounted as a | ||
regular quadcopter and a wing in the middle with 2 ailevons. The ailevons | ||
are only used for roll and pitch with sufficient forward speed. This module | ||
is in charge of disabling them at low speed / high angle of attack when | ||
they have no more efficiency. | ||
</description> | ||
</doc> | ||
|
||
<header> | ||
<file name="eff_scheduling_falcon.h"/> | ||
</header> | ||
<init fun="eff_scheduling_falcon_init()"/> | ||
<periodic fun="eff_scheduling_falcon_periodic()" freq="20.0"/> | ||
<periodic fun="eff_scheduling_falcon_report()" freq="0.5" autorun="FALSE"/> <!-- TRUE FALSE--> | ||
<makefile target="ap|nps" firmware="rotorcraft" > | ||
<file name="eff_scheduling_falcon.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,24 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="eff_scheduling_generic" dir="ctrl"> | ||
<doc> | ||
<description> | ||
Interpolation of control effectivenss matrix. | ||
This is necessary if the vehicle has different operating points, | ||
with significantly different control effectivenss. | ||
Interpolation is linear between two points, usually hover and | ||
forward conditions. | ||
|
||
If instead using online adaptation is an option, be sure to | ||
not use this module at the same time! | ||
</description> | ||
</doc> | ||
<header> | ||
<file name="eff_scheduling_generic.h"/> | ||
</header> | ||
<init fun="eff_scheduling_generic_init()"/> | ||
<periodic fun="eff_scheduling_generic_periodic()" freq="20"/> | ||
<makefile> | ||
<file name="eff_scheduling_generic.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
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,39 @@ | ||
/* | ||
* Copyright (C) Gautier Hattenberger <gautier.hattenberger@enac.fr> | ||
* | ||
* 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, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* @file modules/ctrl/eff_scheduling_cyfoam.h | ||
*/ | ||
|
||
#ifndef EFF_SCHEDULING_CYFOAM_H | ||
#define EFF_SCHEDULING_CYFOAM_H | ||
|
||
/** | ||
* Initialises periodic loop; | ||
*/ | ||
extern void eff_scheduling_cyfoam_init(void); | ||
|
||
/** | ||
* Periodic function that interpolates between gain sets depending on the scheduling variable. | ||
*/ | ||
extern void eff_scheduling_cyfoam_periodic(void); | ||
|
||
#endif /* EFF_SCHEDULING_CYFOAM_H */ | ||
|
Oops, something went wrong.