105 Commits

Author SHA1 Message Date
Pascal Langer
a3c2628359 Replaced debug serial routines 2017-11-26 20:38:30 +01:00
Pascal Langer
7d41017850 Updates
Implemented debug output on uart1 for stm32
Replaced hardcoded eeprom offsets with documented constats
Fixed a bug affecting telemetry on Atmega328p using the invert_telemetry flag.
2017-11-24 23:01:47 +01:00
Pascal Langer
9e8978166e New CABELL protocol
Protocol number: 34
sub_protocols:
0 CABELL_V3
1 CABELL_V3_TELEMETRY
6 CABELL_SET_FAIL_SAFE
7 CABELL_UNBIND
2017-11-23 18:44:31 +01:00
Pascal Langer
76e9002995 S-FHSS failsafe 2017-11-22 13:56:42 +01:00
Pascal Langer
8ea70a1b77 Tons of updates 2017-11-20 16:01:12 +01:00
pascallanger
bdfeeb9a41 Fix STM32 issue and OrangeTX compilation 2017-04-10 11:24:21 +02:00
pascallanger
995bb921c1 DM002 protocol
protocol number 33
sub_protocol none=0
ch5=flip
ch6=led
ch7=headless
2017-03-22 14:55:55 +01:00
pascallanger
d7076f5295 PPM: add MIN_PPM_CHANNELS and MAX_PPM_CHANNELS 2017-02-28 10:36:35 +01:00
pascallanger
548390b0d7 GW008 protocol addition
Protocol number: 32
No sub_protocol
2017-02-24 11:00:10 +01:00
pascallanger
0c5fae01b5 WAIT_FOR_BIND feature
This feature will not activate the selected protocol unless a bind is
requested using bind from channel or the GUI "Bind" button. It is only
enabled if bind from channel and autobind are set since I think they are
working well together.
The goal is to prevent binding other people's model when powering up the
TX, changing model or scanning through protocols.
There is a new blinking pattern associated to it as well as a new status
"Waiting for bind".
This feature is enabled by default in _config.h .
2017-02-10 17:38:07 +01:00
pascallanger
11650450c8 Chip select based on pin definition 2017-02-07 12:08:11 +01:00
pascallanger
bf5598515e Removed board option in _config.h 2017-02-06 21:51:03 +01:00
pascallanger
c02f273d57 New feature: end bind
This new feature is available:
- in serial mode and when binding from the GUI. As soon as the Bind
window is closed = serial bind bit was set and cleared, the current bind
operation will be terminated.
- if the bind was initiated from the Bind on channel feature (bind
channel goes high) then as soon as the bind channel goes low the current
bind operation will be terminated.
Tested on ersky9x which does open a bind window, not sure about
OpenTX...

Some protocols (Hubsan, Assan, FY326, Shenqi...) which are waiting for
model/RX to reply will stay in bind mode.
2017-02-06 18:46:34 +01:00
pascallanger
0a7cd3d6e9 Reset invert serial when switching protocol 2017-02-06 15:50:43 +01:00
pascallanger
85f4dbd670 FrSkyD telemetry and serial TX buffer 2017-02-03 16:49:19 +01:00
pascallanger
9ce23c3d61 Protocol change: make sure that main loop is aware 2017-02-02 14:30:46 +01:00
pascallanger
41d75da33f FrSkyD telemetry
- rewritten the handling of the incoming over the air telemetry packet
- rewritten the TX_RSSI calculation (link frame[4])
- added RX LQI and TX_LQI information in the link frame (frame[5] and
frame[6])
2017-02-01 09:28:35 +01:00
pascallanger
7ee918ad49 Multiprotocol status
Along with the latest ersky9x version, display the module version and if
a specific protocol is available or not.
2017-01-30 16:11:46 +01:00
pascallanger
ba7290fdda New protocol Q303
Q303 protocol number: 31
Sub ptotocols:
-  Q303 = 0
-  CX35 = 1
- CX10D = 2
- CX10WD = 3
2017-01-24 16:58:48 +01:00
pascallanger
e51fb06ceb WK2x01: added fixed id mode for WK2801 2017-01-04 11:35:38 +01:00
pascallanger
fbb919d767 New protocol WK2x01
Protocol WK2x01 number 30
Sub protocols:
- WK2801 number 0, 8 channels, fixed id not supported
- WK2601 number 1, 6/7 channels, option is used see doc for details
- WK2401 number 2, 4 channels
Extended limits supported
Autobind protocol
Most receivers support WK2801 so always start trying this sub protocol
first.
2017-01-03 19:19:53 +01:00
pascallanger
282b2a0a43 Bind from channel: Cosmetic code change 2017-01-03 12:00:25 +01:00
pascallanger
6d0e4d5a38 Fix Bind channel 2017-01-02 18:22:03 +01:00
pascallanger
43956bbf2c Bind channel fix 2017-01-02 17:45:08 +01:00
pascallanger
18e31b3821 Bind channel: configurable channel number
Bind channel can be configured between 5 and 16.
2017-01-02 17:26:35 +01:00
pascallanger
0d0acb9d10 Bind function on channel 16
Toggling channel 16 (-100%->+100%->-100%) will execute a bind only if
the loaded protocol is an autobind protocol or autobind is set AND
throttle is low (below -95%).
2017-01-02 17:04:50 +01:00
pascallanger
917cea5052 STM32: use manuf ID as global ID 2017-01-01 12:31:13 +01:00
pascallanger
7bb26a7f07 FrSkyD and FrSkyX: random frequencies 2016-12-21 18:06:03 +01:00
pascallanger
f56c9deb00 MULTI_TELEMETRY: couple of additions 2016-12-19 17:33:30 +01:00
Arne Schwabe
a196b71d36 Implement Multiprotocol Telemetry
This allows the multi module to tell the TX software (e.g. OpenTX) which telemetry protocol is in use. Also Status of the module and signaling binding/invalid protocol
2016-12-18 15:40:05 +01:00
pascallanger
fa8d4f511f Core: PPM not setting ID properly for some protocols 2016-12-13 20:29:21 +01:00
pascallanger
dfd8d0fa3d Added: Bayang telemetry
Changed telemetry configuration and validation for AFHDS2A and HUBSAN
Added default Bayang telemetry from Silverxxx:
- Option=1 to activate telemetry (option=0 -> standard Bayang protocol)
- Value returned to the TX: RX RSSI, TX RSSI, A1=uncompensated battery
voltage, A2=compensated battery voltage
2016-12-06 22:30:48 +01:00
pascallanger
8f0ecac842 Core: stop transmitting if serial or ppm signal disappears 2016-12-04 18:58:29 +01:00
pascallanger
c24f7a86d4 Flysky/CX20 reversed elevator channel 2016-12-02 20:28:47 +01:00
pascallanger
33d676e1fe Core: option to reverse input channels 2016-12-01 22:30:27 +01:00
pascallanger
c9de0b4cf2 Q2X2 protocol addition for Q222/Q242/Q282
Q2X2 protocol : 29
Sub-protocols:
- Q222 : 0
- Q242 : 1
- Q282 : 2
2016-11-23 21:56:00 +01:00
pascallanger
4f9f10ddf2 Core: blinking pattern for PPM signal detection 2016-11-18 16:51:52 +01:00
pascallanger
4348f4b0d4 STM32: USART init changed 2016-11-06 16:34:40 +01:00
Arne Schwabe
7840438bfc Allow TX to request forwarding of FlySky telemetry data 2016-11-05 01:21:26 +01:00
pascallanger
f56ca6318a STM32: align STM32 code with other platforms for tx_pause/tx_resume 2016-10-27 11:15:25 +02:00
pascallanger
909fb2eb2b AFHDS2A: working version
- Wait for transmit completion before switching to RX (no more fixed
delays...)
- Verify if data has been received before processing it (better handling
of telemetry)
- Added TX_RSSI (along with the existing RX_RSSI)
Known issue: RX_RSSI value needs to be looked at. I'm seeing only values
between 157 (bad) and 196 (good). Is this normal for this protocol?
2016-10-26 13:51:54 +02:00
pascallanger
999c630c5a AFHDS2A protocol addition: UNTESTED
Protocol number: 28
Sub protocols:  PWM_IBUS = 0, PPM_IBUS = 1, PWM_SBUS = 2, PPM_SBUS = 3
Option value =0->50Hz, =1->400Hz, =2->5Hz
Extended channel range supported
Telemetry supported for voltage and RSSI (RX RSSI)
2016-10-20 19:29:52 +02:00
pascallanger
eb6fc4f8cf Fix for STM32 board 2016-10-17 08:37:09 +02:00
pascallanger
8a177c34fa Added Arduino.h for stm32 board 2016-10-16 23:25:52 +02:00
pascallanger
f557609e9e STM32 board & DSM fixes
Loads of changes:
STM32 board introduction: NOT TESTED
XMEGA renamed to ORANGE_TX to be more explicit
DSM: added reset if cyrf freezed
Validate: added a validate file to verify the different compilation
options
2016-10-16 19:51:52 +02:00
pascallanger
cf607e892b OrangeTX Cyrf reset pin 2016-09-22 08:29:29 +02:00
pascallanger
cfcd6e5f93 Code cleanup 2016-09-21 14:28:37 +02:00
pascallanger
73aab88109 Some cleanning 2016-09-20 18:27:09 +02:00
pascallanger
beb692a3c4 Fix pins again... 2016-09-20 01:04:25 +02:00
pascallanger
fcd47ecec6 Correct pins... 2016-09-19 23:43:14 +02:00