pwm_out_sim cleanup

- move to ModuleBase
 - strip down to PWM 8 and 16 modes only
 - remove all dead code
 - implement missing pwm ioctls (current value, rates, etc)
 - default rate 50Hz -> 400Hz
This commit is contained in:
Daniel Agar
2018-03-04 14:12:15 -05:00
parent 3d6854099e
commit 38f5f60a1e
40 changed files with 841 additions and 1140 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ const char *get_commands()
"mc_pos_control start\n"
"mc_att_control start\n"
"sleep 1\n"
"pwm_out_sim mode_pwm\n"
"pwm_out_sim start\n"
"param set RC1_MAX 2015\n"
"param set RC1_MIN 996\n"
"param set RC1_TRIM 1502\n"