作者:彼岸花芬芳 | 来源:互联网 | 2023-09-18 12:15
https:github.comRaspberrySunBlueROV2blobmasterpid_controller.py#设置每个推进器的pwmdefset_motor_pw
https://github.com/RaspberrySun/BlueROV2/blob/master/pid_controller.py
# 设置每个推进器的pwm |
| def set_motor_pwm(channel, pwm): |
| master.mav.command_long_send(master.target_system, master.target_component, mavutil.mavlink.MAV_CMD_DO_MOTOR_TEST, |
| 0, channel, 1, pwm, 1000, 1, 0, 0) |