mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-11-03 22:31:04 +00:00 
			
		
		
		
	SLT Q100/Q200/MR100: reverse elevator
This commit is contained in:
		
							parent
							
								
									f4691d08cc
								
							
						
					
					
						commit
						c153d236f2
					
				@ -18,8 +18,8 @@
 | 
				
			|||||||
//******************
 | 
					//******************
 | 
				
			||||||
#define VERSION_MAJOR		1
 | 
					#define VERSION_MAJOR		1
 | 
				
			||||||
#define VERSION_MINOR		2
 | 
					#define VERSION_MINOR		2
 | 
				
			||||||
#define VERSION_REVISION	0
 | 
					#define VERSION_REVISION	1
 | 
				
			||||||
#define VERSION_PATCH_LEVEL	49
 | 
					#define VERSION_PATCH_LEVEL	0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//******************
 | 
					//******************
 | 
				
			||||||
// Protocols
 | 
					// Protocols
 | 
				
			||||||
 | 
				
			|||||||
@ -141,8 +141,8 @@ static void __attribute__((unused)) SLT_build_packet()
 | 
				
			|||||||
	for (uint8_t i = 0; i < 4; ++i)
 | 
						for (uint8_t i = 0; i < 4; ++i)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		uint16_t v = convert_channel_10b(CH_AETR[i]);
 | 
							uint16_t v = convert_channel_10b(CH_AETR[i]);
 | 
				
			||||||
		if(sub_protocol>SLT_V2 && CH_AETR[i]==THROTTLE)
 | 
							if(sub_protocol>SLT_V2 && (CH_AETR[i]==THROTTLE || CH_AETR[i]==ELEVATOR) )
 | 
				
			||||||
			v=1023-v;	// reverse throttle channel for Q100/Q200/MR100 protocols
 | 
								v=1023-v;	// reverse throttle and elevator channels for Q100/Q200/MR100 protocols
 | 
				
			||||||
		packet[i] = v;
 | 
							packet[i] = v;
 | 
				
			||||||
		e = (e >> 2) | (uint8_t) ((v >> 2) & 0xC0);
 | 
							e = (e >> 2) | (uint8_t) ((v >> 2) & 0xC0);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user