mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
SITL: JSON Master: only copy the first 16 servos
This commit is contained in:
parent
e03aed3aa7
commit
a36848cba5
@ -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…
Reference in New Issue
Block a user