Browse Source

SITL: JSON Master: only copy the first 16 servos

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
a36848cba5
  1. 2
      libraries/SITL/SIM_JSON_Master.cpp

2
libraries/SITL/SIM_JSON_Master.cpp

@ -159,7 +159,7 @@ void JSON_Master::receive(struct sitl_input &input)
if (list->instance == master_instance) { if (list->instance == master_instance) {
// Use the servo outs from this instance // Use the servo outs from this instance
memcpy(input.servos,buffer.pwm,sizeof(input.servos)); memcpy(input.servos,buffer.pwm,sizeof(buffer.pwm));
} }
} }
} }

Loading…
Cancel
Save