Skip to content
Snippets Groups Projects
Commit 2dab23ba authored by tumbili's avatar tumbili Committed by Lorenz Meier
Browse files

pwm_out_sim: scale controls to correct range

parent 960a233f
No related branches found
No related tags found
No related merge requests found
......@@ -502,8 +502,8 @@ PWMSim::task_main()
PX4_ISFINITE(outputs.output[i]) &&
outputs.output[i] >= -1.0f &&
outputs.output[i] <= 1.0f) {
/* scale for PWM output 900 - 2100us */
outputs.output[i] = 1500 + (600 * outputs.output[i]);
/* scale for PWM output 1000 - 2000us */
outputs.output[i] = 1500 + (500 * outputs.output[i]);
} else {
/*
......
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