def set_position_p(self, pvalue):
        """ Set the P gain of the  position PID

        Args:

            pvalue (int): P value
        """
        pvalue_msb = int(pvalue) >> 8
        pvalue_lsb = int(pvalue) & 0xff
        data = []
        data.append(0x0B)
        data.append(self.servoid)
        data.append(RAM_WRITE_REQ)
        data.append(POSITION_KP_RAM)
        data.append(BYTE2)
        data.append( pvalue_lsb)
        data.append( pvalue_msb)
        send_data(data)
def set_position_p ( self , pvalue ) : pvalue_msb = int ( pvalue ) >> 8 pvalue_lsb = int ( pvalue ) & 0xff data = [ ] data . append ( 0x0B ) data . append ( self . servoid ) data . append ( RAM_WRITE_REQ ) data . append ( POSITION_KP_RAM ) data . append ( BYTE2 ) data . append ( pvalue_lsb ) data . append ( pvalue_msb ) send_data ( data )
Set the P gain of the  position PID

        Args:

            pvalue (int): P value