Hi roboteers!
Just finished up on the assembly of my robot project, a tracked rover with arm… and as I’m taking my first steps in programming, I discovered that the rover_v1.2 isn’t working out of the box.
After some reading, I discovered that the command gethservo is no longer in the command package, and is replaced by hservoidle and hservopos in the latest version.
I’ve worked out a bit of code using hservoidle to replace the obsolete bit, but I suspect something else is messed up aswell and thus I can’t test it. Besides, my programming skills are still nonexistant so I thought I’d offer it to more capable hands!
The bit that needs replacing is:
;[WAITFORPREVMOVE] Loop that wait for the previous servo move to be finished
idle var byte
finished var byte
junk var word
WaitForPrevMove
finished = true
gethservo BasePin,junk,idle
if(NOT idle)then
finished=false
endif
gethservo ShoulderPin,junk,idle
if(NOT idle)then
finished=false
endif
gethservo ElbowPin,junk,idle
if(NOT idle)then
finished=false
endif
gethservo WristPin,junk,idle
if(NOT idle)then
finished=false
endif
gethservo GripperPin,junk,idle
if(NOT idle)then
finished=false
endif
gethservo WristRotatepin,junk,idle
if(NOT idle)then
finished=false
endif
if(NOT finished)then WaitForPrevMove
_mPrev_BasePos1 = BasePosition1
_mPrev_ShoulderPos1 = ShoulderPosition1
_mPrev_ElbowPos1 = ElbowPosition1
_mPrev_WristPos1 = WristPosition1
_mPrev_GripperPos1 = GripperPosition1
_mPrev_WristRotatePos1 = WristRotatePosition1
return
Also, this is my first public post so a warm hello to all roboteers out there! I’m looking forward to spending months of problem solving, heh heh.