V761 aileron channel

This commit is contained in:
Pascal Langer 2019-06-08 21:57:02 +02:00
parent 0d917e0dc5
commit f6064d03e1
3 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@
44,NCC1701 44,NCC1701
45,E01X,E012,E015,E016H 45,E01X,E012,E015,E016H
46,V911S 46,V911S
47,GD00X,V1,V2 47,GD00X,GD_V1,GD_V2
48,V761 48,V761
49,KF606 49,KF606
63,XN_DUMP,250K,1M,2M 63,XN_DUMP,250K,1M,2M

View File

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

View File

@ -66,10 +66,10 @@ static void __attribute__((unused)) V761_send_packet()
} }
else else
{ {
packet[0] = convert_channel_8b(THROTTLE); // throttle packet[0] = convert_channel_8b(THROTTLE); // throttle
packet[1] = convert_channel_8b(RUDDER)>>1; // rudder packet[1] = convert_channel_8b(RUDDER)>>1; // rudder
packet[2] = convert_channel_8b(ELEVATOR)>>1; // elevator packet[2] = convert_channel_8b(ELEVATOR)>>1; // elevator
packet[3] = 0x3f; // no functional implementation in this model, possibly optional aileron channel for 4ch version? packet[3] = convert_channel_8b(AILERON)>>1; // aileron
packet[5] = (packet_count++ / 3)<<6; packet[5] = (packet_count++ / 3)<<6;
packet[4] = (packet[5] == 0x40) ? 0x1a : 0x20; packet[4] = (packet[5] == 0x40) ? 0x1a : 0x20;