
PRO
UweP
Germany
Asked
— Edited
Digital Clone Rover Roli
maybe someone can use it....
can be used with the standard project of Roli, just create an EZ-Script and run it:
$go=true
repeatwhile($go)
$strSend = "D9@" + GetServo(d9) + ";D10@" + GetServo(d10)
$strSend = $strSend + ";D19@" + GetServo(d19) + ";D18@" + GetServo(d18) + ";D17@" + GetServo(d17) + ";D16@" + GetServo(d16)
$strSend = $strSend + ";D15@" + GetServo(d15) + ";D14@" + GetServo(d14) + ";D13@" + GetServo(d13) + ";D12@" + GetServo(d12)
SendUDP("127.0.0.1", 11000, $strSend)
Sleep(100)
endrepeatwhile
Here is the program for download: digitalCloneRoverRoli.zip and here the Unity project data to tinker around with yourself: Unity.zip
Have fun ...
24.07.22 Update in Post #17 - Version with moving Rover ....
.
how do I get the values from the HBridge? Is there something in EZ-Script, I only found GetPWM (digitalPort), how can I determine whether and in which direction the rover is driving ....
There’s a global variable for the current direction I believe. It doesn’t matter what type of Movement Panel is used (ie hbridge). The Movement Panel controls the movement service, which has speed and movement values.
ahh, very good, I can start with that. Sorry if I ask so much but I still lack a lot of knowledge about ARC ....
I don’t mind. It’s worthwhile when people ask questions and I get to see the results
:- )
is there a possibility to use the HBridge WITHOUT a connection to the EZB? It should change the $direction value in offline mode...
Edit Variable is set but there is always an error message ....
.
Just remove the hbridge Movement Panel robot skill. It isn’t needed if you’re not using digital ports. All you’re doing is moving the direction. A Movement Panel is only for connecting movements to hardware.
I need something to move the robot in ARC - don't I? It works with the servo Movement Panel, there is no error if the ECB is not connected....