1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

implemented various things for cli

added 'reset to defaults' to cli
got rid of 'servo' feature since that's not really a feature a user can set
added couple more configurable tricopter things to config struct.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@118 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop 2012-03-17 14:09:14 +00:00
parent 2861482bb6
commit 2fc24b338e
8 changed files with 3048 additions and 2542 deletions

View file

@ -1,6 +1,8 @@
#include "board.h"
#include "mw.h"
extern uint8_t useServo;
int main(void)
{
uint8_t i;
@ -17,13 +19,13 @@ int main(void)
systemInit();
readEEPROM();
checkFirstTime();
checkFirstTime(false);
// We have these sensors
sensorsSet(SENSOR_ACC | SENSOR_BARO | SENSOR_MAG);
mixerInit(); // this will configure FEATURE_SERVO depending on mixer type
pwmInit(feature(FEATURE_PPM), feature(FEATURE_SERVO), feature(FEATURE_DIGITAL_SERVO));
pwmInit(feature(FEATURE_PPM), useServo, feature(FEATURE_DIGITAL_SERVO));
LED1_ON;
LED0_OFF;