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

Syncing with Cleanflight upstream

This commit is contained in:
Nicholas Sherlock 2014-12-22 23:23:26 +13:00
commit 1b1a285b4a
63 changed files with 632 additions and 20047 deletions

View file

@ -10,29 +10,34 @@ if found please report via the [github issue tracker](https://github.com/cleanfl
| ----- | ------------ | --------- | ------------------ | ------------------------------------------------------------------------------------------- |
| 1 | USART1 | RX / PA10 | TX / PA9 / TELEM | TELEM output is always inverted (for FrSky). Internally connected to USB port via CP2102 IC |
| 2 | USART2 | RC4 / PA3 | RC3 / PA2 | |
| 3 | SoftSerial 1 | RC5 / PA6 | RC6 / PA7 | |
| 4 | SoftSerial 2 | RC7 / PB0 | RC8 / PB1 | |
| 3 | SOFTSERIAL1 | RC5 / PA6 | RC6 / PA7 | |
| 4 | SOFTSERIAL2 | RC7 / PB0 | RC8 / PB1 | |
* You cannot use USART1/TX/TX/TELEM pins at the same time.
* You may encounter flashing problems if you have something connected to the RX/TX pins. Try disconnecting RX/TX.
# Pinouts
The 10 pin Input connector has the following pinouts when used in RX_PPM/RX_SERIAL mode
The 10 pin RC I/O connector has the following pinouts when used in RX_PPM/RX_SERIAL mode.
| Pin | Identifier | Function | Notes |
| --- | ---------- | -------------- | -------------------------------- |
| 1 | N/A | Ground | |
| 1 | | Ground | |
| 2 | Circle | +5V | |
| 3 | 1 | PPM Input | Enable `feature RX_PPM` |
| 3 | 1 | RX_PPM | Enable `feature RX_PPM` |
| 4 | 2 | RSSI_ADC | Enable `feature RSSI_ADC`. Connect to the output of a PWM-RSSI conditioner, 0v-3.3v input |
| 5 | 3 | Uart 2 TX | |
| 6 | 3 | Uart 2 RX | |
| 7 | 5 | Softserial1 TX | Enable `feature SOFTSERIAL` |
| | | Led Strip | Enable `feature LED_STRIP`. |
| 8 | 6 | Softserial1 RX | Enable `feature SOFTSERIAL` |
| 9 | 7 | Softserial2 TX | Enable `feature SOFTSERIAL` |
| 10 | 8 | Softserial2 RX | Enable `feature SOFTSERIAL` |
| | | Current | Enable `feature CURRENT_METER`. Connect to the output of a current sensor, 0v-3.3v input |
| 5 | 3 | USART2 TX | |
| 6 | 4 | USART2 RX | |
| 7 | 5 | LED_STRIP | Enable `feature LED_STRIP` |
| 8 | 6 | unused | |
| 9 | 7 | unused | |
| 10 | 8 | CURRENT | Enable `feature CURRENT_METER` Connect to the output of a current sensor, 0v-3.3v input |
When SOFTSERIAL is enabled, LED_STRIP and CURRENT_METER are unavailable, but two softserial ports are made available to use instead.
| Pin | Identifier | Function | Notes |
| --- | ---------- | -------------- | -------------------------------- |
| 7 | 5 | SOFTSERIAL1 TX | Enable `feature SOFTSERIAL` |
| 8 | 6 | SOFTSERIAL1 RX | |
| 9 | 7 | SOFTSERIAL2 TX | |
| 10 | 8 | SOFTSERIAL2 RX | |

59
docs/Installation.md Normal file
View file

@ -0,0 +1,59 @@
# Installation
## Using configurator
Use the firmware flasher in the cleanflight configurator.
## Manually
See the board specific flashing instructions.
# Upgrading
When upgrading be sure to backup / dump your existing settings. Some firmware releases are not backwards compatible and default settings are restored when the FC detects an out of date configuration.
## Backup process
disconnect main power, connect to cli via USB/FTDI.
dump using cli
`rate profile 0`
`profile 0`
`dump`
dump profiles using cli if you use them
`profile 1`
`dump profile`
`profile 2`
`dump profile`
dump rate profiles using cli if you use them
`rate profile 1`
`dump rates`
`rate profile 2`
`dump rates`
copy screen output to a file and save it.
## Restore process
Use the cli `defaults` command first.
When restoring from a backup it is a good idea to do a dump of the latest defaults so you know what has changed - if you do this each time a firmware release is created youwill be able to see the cli changes between firmware versions. For instance, in December 2014 the default GPS navigation PIDs changed. If you blindly restore your backup you would not benefit from these new defaults.
Use the CLI and send all the output from the saved from the backup commands.
Do not send the file too fast, if you do the FC might not be able to keep up when using USART adapters (including built in ones) since there is no hardware serial flow control.
You may find you have to copy/paste a few lines at a time.
Repeat the backup process again!
Compare the two backups to make sure you are happy with your restored settings.
Re-apply any new defaults as desired.