1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00
This commit is contained in:
borisbstyle 2016-08-09 22:59:42 +02:00
commit e9924eb13a
2 changed files with 39 additions and 53 deletions

View file

@ -2,51 +2,51 @@ env:
# - RUNTESTS=True # - RUNTESTS=True
# - PUBLISHMETA=True # - PUBLISHMETA=True
# - PUBLISHDOCS=True # - PUBLISHDOCS=True
- TARGET=AFROMINI # - TARGET=AFROMINI
- TARGET=AIORACERF3 # - TARGET=AIORACERF3
- TARGET=AIR32 # - TARGET=AIR32
- TARGET=ALIENFLIGHTF1 # - TARGET=ALIENFLIGHTF1
- TARGET=ALIENFLIGHTF3 - TARGET=ALIENFLIGHTF3
- TARGET=ALIENFLIGHTF4 - TARGET=ALIENFLIGHTF4
- TARGET=BLUEJAYF4 - TARGET=BLUEJAYF4
- TARGET=CC3D - TARGET=CC3D
- TARGET=CC3D_OPBL - TARGET=CC3D_OPBL
- TARGET=CHEBUZZF3 # - TARGET=CHEBUZZF3
- TARGET=CJMCU # - TARGET=CJMCU
- TARGET=COLIBRI # - TARGET=COLIBRI
- TARGET=COLIBRI_RACE # - TARGET=COLIBRI_RACE
- TARGET=DOGE # - TARGET=DOGE
- TARGET=EUSTM32F103RC # - TARGET=EUSTM32F103RC
- TARGET=F4BY # - TARGET=F4BY
- TARGET=FURYF3 # - TARGET=FURYF3
- TARGET=FURYF4 - TARGET=FURYF4
- TARGET=IRCFUSIONF3 # - TARGET=IRCFUSIONF3
- TARGET=KISSFC # - TARGET=KISSFC
- TARGET=LUX_RACE # - TARGET=LUX_RACE
- TARGET=MICROSCISKY # - TARGET=MICROSCISKY
- TARGET=MOTOLAB # - TARGET=MOTOLAB
- TARGET=NAZE - TARGET=NAZE
- TARGET=OLIMEXINO # - TARGET=OLIMEXINO
- TARGET=OMNIBUS # - TARGET=OMNIBUS
- TARGET=OMNIBUSF4 # - TARGET=OMNIBUSF4
- TARGET=PIKOBLX # - TARGET=PIKOBLX
- TARGET=PORT103R # - TARGET=PORT103R
- TARGET=REVO - TARGET=REVO
- TARGET=REVONANO # - TARGET=REVONANO
- TARGET=REVO_OPBL # - TARGET=REVO_OPBL
- TARGET=RMDO # - TARGET=RMDO
- TARGET=SINGULARITY # - TARGET=SINGULARITY
- TARGET=SIRINFPV # - TARGET=SIRINFPV
- TARGET=SPARKY - TARGET=SPARKY
- TARGET=SPARKY2 # - TARGET=SPARKY2
- TARGET=SPARKY_OPBL # - TARGET=SPARKY_OPBL
- TARGET=SPRACINGF3 - TARGET=SPRACINGF3
- TARGET=SPRACINGF3EVO - TARGET=SPRACINGF3EVO
- TARGET=SPRACINGF3MINI # - TARGET=SPRACINGF3MINI
- TARGET=STM32F3DISCOVERY - TARGET=STM32F3DISCOVERY
- TARGET=VRRACE # - TARGET=VRRACE
- TARGET=X_RACERSPI # - TARGET=X_RACERSPI
- TARGET=ZCOREF3 # - TARGET=ZCOREF3
# use new docker environment # use new docker environment
sudo: false sudo: false

View file

@ -450,6 +450,7 @@ static const char * const lookupTableAccHardware[] = {
"LSM303DLHC", "LSM303DLHC",
"MPU6000", "MPU6000",
"MPU6500", "MPU6500",
"MPU9250",
"FAKE" "FAKE"
}; };
@ -926,7 +927,6 @@ const clivalue_t valueTable[] = {
#define VALUE_COUNT (sizeof(valueTable) / sizeof(clivalue_t)) #define VALUE_COUNT (sizeof(valueTable) / sizeof(clivalue_t))
typedef union { typedef union {
int32_t int_value; int32_t int_value;
float float_value; float float_value;
@ -939,8 +939,6 @@ static void cliPrint(const char *str);
static void cliPrintf(const char *fmt, ...); static void cliPrintf(const char *fmt, ...);
static void cliWrite(uint8_t ch); static void cliWrite(uint8_t ch);
#define printSectionBreak() cliPrintf((char *)sectionBreak)
#define COMPARE_CONFIG(value) (masterConfig.value == defaultConfig.value) #define COMPARE_CONFIG(value) (masterConfig.value == defaultConfig.value)
static bool cliDumpPrintf(uint8_t dumpMask, bool equalsDefault, const char *format, ...); static bool cliDumpPrintf(uint8_t dumpMask, bool equalsDefault, const char *format, ...);
@ -1730,8 +1728,6 @@ static void printServo(uint8_t dumpMask, master_t *defaultConfig)
); );
} }
printSectionBreak();
// print servo directions // print servo directions
unsigned int channel; unsigned int channel;
for (i = 0; i < MAX_SUPPORTED_SERVOS; i++) { for (i = 0; i < MAX_SUPPORTED_SERVOS; i++) {
@ -2021,10 +2017,9 @@ static void cliSdInfo(char *cmdline) {
; // Nothing more detailed to print ; // Nothing more detailed to print
break; break;
} }
cliPrint("\r\n");
break; break;
} }
cliPrint("\r\n");
} }
#endif #endif
@ -2325,14 +2320,12 @@ static void printConfig(char *cmdline, bool doDiff)
if ((dumpMask & DUMP_MASTER) || (dumpMask & DUMP_ALL)) { if ((dumpMask & DUMP_MASTER) || (dumpMask & DUMP_ALL)) {
cliPrint("\r\n# version\r\n"); cliPrint("\r\n# version\r\n");
cliVersion(NULL); cliVersion(NULL);
cliPrint("\r\n");
if ((dumpMask & (DUMP_ALL | DO_DIFF)) == (DUMP_ALL | DO_DIFF)) { if ((dumpMask & (DUMP_ALL | DO_DIFF)) == (DUMP_ALL | DO_DIFF)) {
cliPrint("\r\n# reset configuration to default settings\r\ndefaults\r\n"); cliPrint("\r\n# reset configuration to default settings\r\ndefaults\r\n");
} }
printSectionBreak(); cliPrint("\r\n# name\r\n");
cliPrint("# name\r\n");
printName(dumpMask); printName(dumpMask);
cliPrint("\r\n# mixer\r\n"); cliPrint("\r\n# mixer\r\n");
@ -2459,7 +2452,7 @@ static void printConfig(char *cmdline, bool doDiff)
cliPrint("\r\n# adjrange\r\n"); cliPrint("\r\n# adjrange\r\n");
printAdjustmentRange(dumpMask, &defaultConfig); printAdjustmentRange(dumpMask, &defaultConfig);
cliPrintf("\r\n# rxrange\r\n"); cliPrint("\r\n# rxrange\r\n");
printRxRange(dumpMask, &defaultConfig); printRxRange(dumpMask, &defaultConfig);
#ifdef USE_SERVOS #ifdef USE_SERVOS
@ -2518,26 +2511,19 @@ static void cliDumpProfile(uint8_t profileIndex, uint8_t dumpMask, master_t *def
{ {
if (profileIndex >= MAX_PROFILE_COUNT) // Faulty values if (profileIndex >= MAX_PROFILE_COUNT) // Faulty values
return; return;
changeProfile(profileIndex); changeProfile(profileIndex);
cliPrint("\r\n# profile\r\n"); cliPrint("\r\n# profile\r\n");
cliProfile(""); cliProfile("");
printSectionBreak();
dumpValues(PROFILE_VALUE, dumpMask, defaultConfig); dumpValues(PROFILE_VALUE, dumpMask, defaultConfig);
cliRateProfile("");
} }
static void cliDumpRateProfile(uint8_t rateProfileIndex, uint8_t dumpMask, master_t *defaultConfig) static void cliDumpRateProfile(uint8_t rateProfileIndex, uint8_t dumpMask, master_t *defaultConfig)
{ {
if (rateProfileIndex >= MAX_RATEPROFILES) // Faulty values if (rateProfileIndex >= MAX_RATEPROFILES) // Faulty values
return; return;
changeControlRateProfile(rateProfileIndex); changeControlRateProfile(rateProfileIndex);
cliPrint("\r\n# rateprofile\r\n"); cliPrint("\r\n# rateprofile\r\n");
cliRateProfile(""); cliRateProfile("");
printSectionBreak();
dumpValues(PROFILE_RATE_VALUE, dumpMask, defaultConfig); dumpValues(PROFILE_RATE_VALUE, dumpMask, defaultConfig);
} }
@ -3337,7 +3323,7 @@ static void cliVersion(char *cmdline)
{ {
UNUSED(cmdline); UNUSED(cmdline);
cliPrintf("# BetaFlight/%s %s %s / %s (%s)", cliPrintf("# BetaFlight/%s %s %s / %s (%s)\r\n",
targetName, targetName,
FC_VERSION_STRING, FC_VERSION_STRING,
buildDate, buildDate,