by FriedV » Tue Nov 13, 2012 7:09 pm
by FriedV
Tue Nov 13, 2012 7:09 pm
Hi,
my Crusty (Crustcrawler Hexapod) can be very well programmed via sync_write to all legs(18 servos).
To check if movement hat completed I use (VB 2012)
----------------------------------------------------------
Public Shared Function IsMoving() As Boolean
'Anything moving?
Dim Mov As Boolean = False
For i = 1 To 18
Mov = Mov Or dxl_read_byte(i, 46)
Next
Return Mov
End Function
-----------------------------------------------------------
This works quite well but even if the 18 servos are already in their respective goal positions, this routine takes about 600 msec.
Anyone knows of a better way to do this?
Hi,
my Crusty (Crustcrawler Hexapod) can be very well programmed via sync_write to all legs(18 servos).
To check if movement hat completed I use (VB 2012)
----------------------------------------------------------
Public Shared Function IsMoving() As Boolean
'Anything moving?
Dim Mov As Boolean = False
For i = 1 To 18
Mov = Mov Or dxl_read_byte(i, 46)
Next
Return Mov
End Function
-----------------------------------------------------------
This works quite well but even if the 18 servos are already in their respective goal positions, this routine takes about 600 msec.
Anyone knows of a better way to do this?