ArduSub custom motor control

We tested the servo today…

ESC: https://www.amazon.com/gp/product/B01LZHBJ85/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1|

Motor: CIM Motor - VEX Robotics

Results:

  • The custom code causes a loss of communication to the pixhawk (QGroundControl announces “Communication Lost”), not sure what the problem is since you approved it?
  • Even when attemptings the servo1_max and servo1_min values, the motor was not really performing as expected.
  • We assumed this was because maybe the pwm values are incorrect? So we tried to send some pwm values using the camera menu and found that certain min/max pwm values cause the motor to configure itself differently. For example, at one stage, a pwm value of 1500 was neutral and then 1300 would cause it to spin in one direction and 1600 in another direction. But as soon as we assigned say 1800 or something, the motor would beep and suddenly 800 is neutral, 1200 causes to spin one direction and then beyond say 1500 it would reconfigure again. So we are very confused about this and think we definitely need someone more experienced to troubleshoot with us.