mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:38:13 +00:00
Update Kyosho_a7105.ino
This commit is contained in:
parent
8ac53657ec
commit
75a46858da
@ -59,7 +59,7 @@ static void __attribute__((unused)) KYOSHO_send_packet()
|
|||||||
packet[ 0] = 0x58; // normal packet
|
packet[ 0] = 0x58; // normal packet
|
||||||
//FHSS 14 channels: steering, throttle, ...
|
//FHSS 14 channels: steering, throttle, ...
|
||||||
//Syncro 6 channels: steering, throttle, ...
|
//Syncro 6 channels: steering, throttle, ...
|
||||||
for(uint8_t i = 0; i < (sub_protocol==KYOSHO_FHSS?14:6); i++)
|
for(uint8_t i = 0; i < 14; i++) //needed?: i < (sub_protocol==KYOSHO_FHSS?14:6); i++)
|
||||||
{
|
{
|
||||||
uint16_t temp=convert_channel_ppm(i);
|
uint16_t temp=convert_channel_ppm(i);
|
||||||
packet[9 + i*2]=temp&0xFF; // low byte of servo timing(1000-2000us)
|
packet[9 + i*2]=temp&0xFF; // low byte of servo timing(1000-2000us)
|
||||||
@ -67,7 +67,7 @@ static void __attribute__((unused)) KYOSHO_send_packet()
|
|||||||
}
|
}
|
||||||
if(sub_protocol==KYOSHO_SYNCRO)
|
if(sub_protocol==KYOSHO_SYNCRO)
|
||||||
{
|
{
|
||||||
memcpy(&packet[21],&hopping_frequency[11],6);
|
//memcpy(&packet[21],&hopping_frequency[11],6); // needed?
|
||||||
packet[34] = 0x0F;
|
packet[34] = 0x0F;
|
||||||
packet[36] = 0x0F;
|
packet[36] = 0x0F;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user