Menu

Servo Command Question

Help
2008-05-16
2013-03-27
  • Kenneth Barnes

    Kenneth Barnes - 2008-05-16

    While looking through your send_short_servo_cmd() function I noticed that the command sent to the MNAV is equivalent to ST (0x53,0x54 found on lines 579,580 in navigation/mnav.cpp) However, the checksum is added as (0x53+0x53). Is there a reason for this ST command because the longer send servo function uses the command SS?

     
    • Curtis Olson

      Curtis Olson - 2008-05-16

      I don't understand the question, are you sure you read the source code right?  0x53 0x53 is the command for the original send_servo_cmd()  I used 0x53 0x54 as my new send_servo_short_cmd() which only sends data for the first 4 channels.  I made a corresponding change to the MNAV firmware to support this new command.  If you don't make a similar change to the MNAV firmware, then you should just use the original send_servo_cmd() function.

      Regards,

      Curt.

       
    • Kenneth Barnes

      Kenneth Barnes - 2008-05-17

      I see, I didn't know you had changed the MNAV firmware to correspond to this functions, I has assumed your firmware was stock. Thanks for the quick reply!

       

Log in to post a comment.

MongoDB Logo MongoDB