1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Bring back throttle and motor limits to quick menu

This commit is contained in:
limonspb 2024-04-28 21:43:23 -05:00 committed by limon.spb
parent 1c5d65e50b
commit 633872e160

View file

@ -108,11 +108,11 @@ static const void *writeLedColor(displayPort_t *pDisp, const OSD_Entry *self) {
return NULL;
}
/*
static const char * const osdTableThrottleLimitType[] = {
"OFF", "SCALE", "CLIP"
};
*/
static const OSD_Entry menuMainEntries[] =
{
@ -121,6 +121,9 @@ static const OSD_Entry menuMainEntries[] =
#if defined(USE_RPM_LIMIT)
{ "RPM LIM", OME_Submenu, cmsMenuChange, &cmsx_menuRpmLimit },
#endif
{ "THR LIM TYPE",OME_TAB, NULL, &(OSD_TAB_t) { &rateProfile.throttle_limit_type, THROTTLE_LIMIT_TYPE_COUNT - 1, osdTableThrottleLimitType} },
{ "THR LIM %", OME_UINT8, NULL, &(OSD_UINT8_t) { &rateProfile.throttle_limit_percent, 25, 100, 1} },
{ "MTR OUT LIM %",OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_motorOutputLimit, MOTOR_OUTPUT_LIMIT_PERCENT_MIN, MOTOR_OUTPUT_LIMIT_PERCENT_MAX, 1} },
{ "FORCE CELLS", OME_UINT8, NULL, &(OSD_UINT8_t) { &batteryProfile.forceBatteryCellCount, 0, 24, 1} },
#if defined(USE_VTX_CONTROL)
#if defined(USE_VTX_RTC6705) || defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP)