Skip to content

Commit

Permalink
Update Kyosho_a7105.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallanger committed Jan 30, 2024
1 parent 8ac5365 commit 75a4685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Multiprotocol/Kyosho_a7105.ino
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ static void __attribute__((unused)) KYOSHO_send_packet()
packet[ 0] = 0x58; // normal packet
//FHSS 14 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);
packet[9 + i*2]=temp&0xFF; // low byte of servo timing(1000-2000us)
packet[10 + i*2]=(temp>>8)&0xFF; // high byte of servo timing(1000-2000us)
}
if(sub_protocol==KYOSHO_SYNCRO)
{
memcpy(&packet[21],&hopping_frequency[11],6);
//memcpy(&packet[21],&hopping_frequency[11],6); // needed?
packet[34] = 0x0F;
packet[36] = 0x0F;
}
Expand Down

0 comments on commit 75a4685

Please sign in to comment.