Skip to content

Commit

Permalink
V761 aileron channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Langer committed Jun 8, 2019
1 parent 0d917e0 commit f6064d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Multiprotocol/Multi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
44,NCC1701
45,E01X,E012,E015,E016H
46,V911S
47,GD00X,V1,V2
47,GD00X,GD_V1,GD_V2
48,V761
49,KF606
63,XN_DUMP,250K,1M,2M
2 changes: 1 addition & 1 deletion Multiprotocol/Multiprotocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 58
#define VERSION_PATCH_LEVEL 59

//******************
// Protocols
Expand Down
8 changes: 4 additions & 4 deletions Multiprotocol/V761_nrf24l01.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ static void __attribute__((unused)) V761_send_packet()
}
else
{
packet[0] = convert_channel_8b(THROTTLE); // throttle
packet[1] = convert_channel_8b(RUDDER)>>1; // rudder
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[0] = convert_channel_8b(THROTTLE); // throttle
packet[1] = convert_channel_8b(RUDDER)>>1; // rudder
packet[2] = convert_channel_8b(ELEVATOR)>>1; // elevator
packet[3] = convert_channel_8b(AILERON)>>1; // aileron
packet[5] = (packet_count++ / 3)<<6;
packet[4] = (packet[5] == 0x40) ? 0x1a : 0x20;

Expand Down

0 comments on commit f6064d0

Please sign in to comment.