![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ライブラリ化を行った後
Dependencies: QEI accelerator bit_test cyclic_io cyclic_var cylinder event_var limit mbed mecanum motor_drive pid pid_encoder rs422_put sbdbt servo
Fork of 17robo_Practice1 by
Diff: main.cpp
- Revision:
- 60:07d7bde726f9
- Parent:
- 59:68a73b9d27f5
- Child:
- 61:86990ae9f8f6
--- a/main.cpp Tue Sep 19 05:34:12 2017 +0000 +++ b/main.cpp Wed Sep 20 04:04:27 2017 +0000 @@ -242,6 +242,7 @@ //pc.printf("terget\t%f\tnow_deg\t%f\tnow_pulse\t%d\tpwm\t%f\r\n",cylinder_pos[cylinder_pos_num],enc_cylinder.deg(),enc_cylinder.pulse(),enc_cylinder.duty()); } +//function void servo_max() { servo.pulsewidth(0.0022); @@ -261,7 +262,7 @@ } -//boost +//functionBoost void boost() { if(sbdbt.r2) { @@ -280,7 +281,7 @@ */ } -//mecanum +//functionMecanum void motor_cal() { static float out_right_x;