mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Update documentation,
Update Spektrum_bind.md additional defines for hardware bind plug (AlienWii32)
This commit is contained in:
parent
4b2f35ccef
commit
a629646090
2 changed files with 19 additions and 5 deletions
|
@ -2,15 +2,27 @@
|
|||
|
||||
Spektrum bind with hardware bind plug support.
|
||||
|
||||
## The Spektrum bind code is actually only enabled for the NAZE target. The following parameters can be used to enable and configure this for other targets after more testing:
|
||||
|
||||
#define SPEKTRUM_BIND Enables the Spektrum bind code
|
||||
#define BIND_PORT GPIOA Defines the port for the bind pin
|
||||
#define BIND_PIN Pin_3 Defines the bind pin (the satellite receiver is connected to)
|
||||
|
||||
This is to activate the Hardware bind pug feature
|
||||
|
||||
#define HARDWARE_BIND_PLUG Enables the hardware bind plug feature
|
||||
#define BINDPLUG_PORT GPIOB Defines the port for the hardware bind plug
|
||||
#define BINDPLUG_PIN Pin_5 Defines the hardware bind plug pin
|
||||
|
||||
## Hardware
|
||||
|
||||
The hardware bind plug will be enabled via defining HARDWARE_BIND_PLUG during building of the firmware. This is done automatically if the AlienWii32 firmware is build. The bind plug is expected between pin 41 (PB5 STM32F103CBT6) and ground. The bind code will actually work for USART2 (PA3 STM32F103CBT6).
|
||||
|
||||
## Function
|
||||
|
||||
If the bind plug is set the bind mode will be permanently activated during the firmware start-up. The spektrum_sat_bind CLI parameter is defining the number of bind impulses (1-10) send to the satellite receiver. Please refer to the table below. If there is no hardware bind plug present and the spektrum_sat_bind paremeter is set the bind code will be executed one time only after the next start of the firmware (hardware reset or power on). The spektrum_sat_bind parameter will be reset to 0 when done. The bind code will not be executed during an soft rest of the MCU. Please refer to the sattelite receiver documentation for more details of the specific receiver in bind mode. Usually the bind mode will be indicated with some flashing LED’s. The Bind plug should be always removed for normal flying.
|
||||
If the bind plug is set the bind mode will be permanently activated during the firmware start-up. The spektrum_sat_bind CLI parameter is defining the number of bind impulses (1-10) send to the satellite receiver. Please refer to the table below. If there is no hardware bind plug present and the spektrum_sat_bind parameter is set the bind code will be executed one time only after the next start of the firmware (hardware reset or power on). The spektrum_sat_bind parameter will be reset to 0 when done. The bind code will not be executed during an soft rest of the MCU. Please refer to the satellite receiver documentation for more details of the specific receiver in bind mode. Usually the bind mode will be indicated with some flashing LED’s. The Bind plug should be always removed for normal flying.
|
||||
|
||||
## Table with spektrum_sat_bind parameter Value
|
||||
## Table with spektrum_sat_bind parameter value
|
||||
|
||||
| Value | Receiver mode | Notes |
|
||||
| ----- | ---------------| --------|
|
||||
|
@ -19,9 +31,9 @@ If the bind plug is set the bind mode will be permanently activated during the f
|
|||
| 7 | DSMX 22ms | |
|
||||
| 9 | DSMX 11ms | |
|
||||
|
||||
More detailed information regarding the sattelite binding process can be found here:
|
||||
More detailed information regarding the satellite binding process can be found here:
|
||||
http://wiki.openpilot.org/display/Doc/Spektrum+Satellite
|
||||
|
||||
### Supported Hardware
|
||||
|
||||
all NAZE targets (NAZE32, MW32, Flip32, AlienWii32 with hardware bind pin)
|
||||
all NAZE targets (NAZE32, MW32, Flip32, AlienWii32 with hardware bind plug)
|
|
@ -112,8 +112,10 @@
|
|||
#define SERIAL_RX
|
||||
#define AUTOTUNE
|
||||
|
||||
// alternative defaults AlienWii32 (activate via OPTIONS="ALIENWII32" during make for NAZE target)
|
||||
// alternative defaults AlienWii32 (activate via OPTIONS="ALIENWII32" during make for NAZE target)
|
||||
#ifdef ALIENWII32
|
||||
#define BRUSHED_MOTORS
|
||||
#define HARDWARE_BIND_PLUG
|
||||
#define BINDPLUG_PORT GPIOB
|
||||
#define BINDPLUG_PIN Pin_5
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue