mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 22:48:12 +00:00
DSM: Remove special bind stick positionsD
Spektrum own remotes transmit normal values during bind and actually use this (e.g. Nano CP X) to select the transmitter mode (e.g. computer vs non-computer radio, so always end normal output
This commit is contained in:
parent
a800f1efc7
commit
3850ce88d3
@ -273,13 +273,9 @@ static void __attribute__((unused)) DSM_build_data_packet(uint8_t upper)
|
|||||||
uint16_t value = 0xffff;;
|
uint16_t value = 0xffff;;
|
||||||
if (idx != 0xff)
|
if (idx != 0xff)
|
||||||
{
|
{
|
||||||
if (!IS_BIND_DONE_on)
|
/* Spektrum own remotes transmit normal values during bind and actually
|
||||||
{ // Failsafe position during binding
|
* use this (e.g. Nano CP X) to select the transmitter mode (e.g. computer vs
|
||||||
value=max/2; //all channels to middle
|
* non-computer radio, so always end normal output */
|
||||||
if(idx==0)
|
|
||||||
value=1; //except throttle
|
|
||||||
}
|
|
||||||
else
|
|
||||||
value=map(Servo_data[CH_TAER[idx]],servo_min_125,servo_max_125,0,max);
|
value=map(Servo_data[CH_TAER[idx]],servo_min_125,servo_max_125,0,max);
|
||||||
value |= (upper && i==0 ? 0x8000 : 0) | (idx << bits);
|
value |= (upper && i==0 ? 0x8000 : 0) | (idx << bits);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user