mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:28:15 +00:00
Fix V761 input
This commit is contained in:
parent
a15a911f8e
commit
6a7c735924
@ -19,7 +19,7 @@
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_REVISION 1
|
||||
#define VERSION_PATCH_LEVEL 52
|
||||
#define VERSION_PATCH_LEVEL 53
|
||||
|
||||
//******************
|
||||
// Protocols
|
||||
|
@ -68,7 +68,7 @@ static void __attribute__((unused)) V761_send_packet()
|
||||
{
|
||||
packet[0] = convert_channel_8b(THROTTLE); // throttle
|
||||
packet[1] = convert_channel_8b(RUDDER)>>1; // rudder
|
||||
packet[2] = convert_channel_8b(RUDDER)>>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[5] = (packet_count++ / 3)<<6;
|
||||
packet[4] = (packet[5] == 0x40) ? 0x1a : 0x20;
|
||||
@ -80,7 +80,7 @@ static void __attribute__((unused)) V761_send_packet()
|
||||
if(Channel_data[CH5] < CHANNEL_MIN_COMMAND)
|
||||
flags = 0x08; // Beginer mode (Gyro on, yaw and pitch rate limited)
|
||||
else
|
||||
flags = 0x0a; // Midd Mode ( Gyro on no rate limits)
|
||||
flags = 0x0a; // Mid Mode ( Gyro on no rate limits)
|
||||
packet[5] |= flags;
|
||||
packet[6] = 0x80; // unknown
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user