Skip to content
Snippets Groups Projects
Commit dbd065a3 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Add PWM out sim trim settings

parent 306d4b88
No related branches found
No related tags found
No related merge requests found
......@@ -690,6 +690,17 @@ PWMSim::pwm_ioctl(device::file_t *filp, int cmd, unsigned long arg)
break;
}
case PWM_SERVO_GET_TRIM_PWM: {
struct pwm_output_values *pwm = (struct pwm_output_values *)arg;
for (unsigned i = 0; i < _num_outputs; i++) {
pwm->values[i] = 1500;
}
pwm->channel_count = _num_outputs;
break;
}
case PWM_SERVO_GET_MAX_PWM: {
struct pwm_output_values *pwm = (struct pwm_output_values *)arg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment