mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
separate all telemetry code and add option to use softserial for telemetry.
to use, set softserial_baudrate=9600, softserial_inverted=1 and telemetry_softserial=1 then enable feature TELEMETRY. by disq git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@448 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
47a4d30358
commit
779dfe8a92
8 changed files with 47 additions and 14 deletions
|
@ -139,7 +139,7 @@ int main(void)
|
|||
batteryInit();
|
||||
|
||||
serialInit(mcfg.serial_baudrate);
|
||||
|
||||
|
||||
if (feature(FEATURE_SOFTSERIAL)) {
|
||||
setupSoftSerial1(mcfg.softserial_baudrate, mcfg.softserial_inverted);
|
||||
#ifdef SOFTSERIAL_LOOPBACK
|
||||
|
@ -148,6 +148,9 @@ int main(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
if (feature(FEATURE_TELEMETRY))
|
||||
initTelemetry();
|
||||
|
||||
previousTime = micros();
|
||||
if (mcfg.mixerConfiguration == MULTITYPE_GIMBAL)
|
||||
calibratingA = CALIBRATING_ACC_CYCLES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue