V911S mod

Change AIL and RUD directions.
This commit is contained in:
Pascal Langer 2018-11-09 10:19:36 +01:00
parent 903982afb7
commit 05470446a0
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -64,13 +64,13 @@ static void __attribute__((unused)) V911S_send_packet(uint8_t bind)
uint16_t ch=convert_channel_16b_limit(THROTTLE ,0,0x7FF);
packet[ 7] = ch;
packet[ 8] = ch>>8;
ch=convert_channel_16b_limit(AILERON ,0,0x7FF);
ch=convert_channel_16b_limit(AILERON ,0x7FF,0);
packet[ 8]|= ch<<3;
packet[ 9] = ch>>5;
ch=convert_channel_16b_limit(ELEVATOR,0,0x7FF);
packet[10] = ch;
packet[11] = ch>>8;
ch=convert_channel_16b_limit(RUDDER ,0,0x7FF);
ch=convert_channel_16b_limit(RUDDER ,0x7FF,0);
packet[11]|= ch<<3;
packet[12] = ch>>5;
}