EN CN
Using SBGC_CMD_MOTORS_OFF
  • Hi
    I successfully made a small sketch to control SimpleBGC over the serial API. Yaw and pitch work perfect.
    I can not switch the Motors on and off though.

    void GimbalMotorsOff(){
    SBGC_cmd_control_t c = { 0, 0, 0, 0, 0, 0, 0 };
    c.mode = SBGC_CMD_MOTORS_OFF;
    SBGC_cmd_control_send(c, sbgc_parser);
    delay(500);
    }

    Maybe someone can tell me what I am missing.

    Thanks for your time guys.
    Cheers
    Christof


  • Hi Guys
    It would be very nice if you could give me a hint on what I do wrong here.

    Cheers
    Christof
  • Try with this code:

    sbgc_parser.send_command(SBGC_CMD_MOTORS_OFF, NULL, 0, 0);

    It works for me via Serial Port ;).
  • Thanks for the hint. This works very well.