forked from betaflight/betaflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate autopilot multirotor from autopilot wing - dummy files for w…
…ing (betaflight#14108) * separate autopilot multirotor from autopilot wing - dummy files for wing * fix for lisence header for new files * filling empty PG structures with uint8_t dummy
- Loading branch information
Showing
48 changed files
with
1,345 additions
and
194 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 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,114 @@ | ||
/* | ||
* This file is part of Betaflight. | ||
* | ||
* Betaflight 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 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Betaflight 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 Betaflight. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include <string.h> | ||
#include <ctype.h> | ||
|
||
#include "platform.h" | ||
|
||
#ifdef USE_WING | ||
|
||
#ifdef USE_CMS_GPS_RESCUE_MENU | ||
|
||
#include "cli/settings.h" | ||
|
||
#include "cms/cms.h" | ||
#include "cms/cms_types.h" | ||
#include "cms/cms_menu_gps_rescue.h" | ||
|
||
#include "config/feature.h" | ||
|
||
#include "config/config.h" | ||
|
||
#include "flight/position.h" | ||
|
||
#include "pg/autopilot.h" | ||
#include "pg/gps_rescue.h" | ||
|
||
static const void *cms_menuGpsRescuePidOnEnter(displayPort_t *pDisp) | ||
{ | ||
UNUSED(pDisp); | ||
|
||
return NULL; | ||
} | ||
|
||
static const void *cms_menuGpsRescuePidOnExit(displayPort_t *pDisp, const OSD_Entry *self) | ||
{ | ||
UNUSED(pDisp); | ||
UNUSED(self); | ||
|
||
return NULL; | ||
} | ||
|
||
const OSD_Entry cms_menuGpsRescuePidEntries[] = | ||
{ | ||
{"--- GPS RESCUE PID---", OME_Label, NULL, NULL}, | ||
|
||
{"BACK", OME_Back, NULL, NULL}, | ||
{NULL, OME_END, NULL, NULL} | ||
}; | ||
|
||
CMS_Menu cms_menuGpsRescuePid = { | ||
#ifdef CMS_MENU_DEBUG | ||
.GUARD_text = "MENUGPSRPID", | ||
.GUARD_type = OME_MENU, | ||
#endif | ||
.onEnter = cms_menuGpsRescuePidOnEnter, | ||
.onExit = cms_menuGpsRescuePidOnExit, | ||
.onDisplayUpdate = NULL, | ||
.entries = cms_menuGpsRescuePidEntries, | ||
}; | ||
|
||
static const void *cmsx_menuGpsRescueOnEnter(displayPort_t *pDisp) | ||
{ | ||
UNUSED(pDisp); | ||
|
||
return NULL; | ||
} | ||
|
||
static const void *cmsx_menuGpsRescueOnExit(displayPort_t *pDisp, const OSD_Entry *self) | ||
{ | ||
UNUSED(pDisp); | ||
UNUSED(self); | ||
|
||
return NULL; | ||
} | ||
|
||
const OSD_Entry cmsx_menuGpsRescueEntries[] = | ||
{ | ||
{"--- GPS RESCUE ---", OME_Label, NULL, NULL}, | ||
|
||
{"BACK", OME_Back, NULL, NULL}, | ||
{NULL, OME_END, NULL, NULL} | ||
}; | ||
|
||
CMS_Menu cmsx_menuGpsRescue = { | ||
#ifdef CMS_MENU_DEBUG | ||
.GUARD_text = "MENUGPSRES", | ||
.GUARD_type = OME_MENU, | ||
#endif | ||
.onEnter = cmsx_menuGpsRescueOnEnter, | ||
.onExit = cmsx_menuGpsRescueOnExit, | ||
.onDisplayUpdate = NULL, | ||
.entries = cmsx_menuGpsRescueEntries, | ||
}; | ||
|
||
#endif | ||
|
||
#endif // USE_WING |
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
Oops, something went wrong.