Fix GW008 protocol

This commit is contained in:
Pascal Langer 2019-08-24 22:14:18 +02:00
parent 2f3ea323c7
commit 1f0b21e351
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ static void __attribute__((unused)) GW008_send_packet(uint8_t bind)
}
else
{
packet[1] = 0x01 | GET_FLAG(CH5, 0x40); // flip
packet[1] = 0x01 | GET_FLAG(CH5_SW, 0x40); // flip
packet[2] = convert_channel_16b_limit(AILERON , 200, 0); // aileron
packet[3] = convert_channel_16b_limit(ELEVATOR, 0, 200); // elevator
packet[4] = convert_channel_16b_limit(RUDDER , 200, 0); // rudder
@ -125,7 +125,7 @@ uint16_t GW008_callback()
NRF24L01_SetTxRxMode(TX_EN);
GW008_send_packet(1);
phase = GW008_BIND2;
return 300;
return 850; // minimum value 750 for STM32
}
break;
case GW008_BIND2:

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 72
#define VERSION_PATCH_LEVEL 73
//******************
// Protocols