asterof
USA
Asked
— Edited
So I have a Camera mounted on a Ping Sensor mounted on a horizontal servo. I tried several existing scripts but could not get the servo to move The servo in on D0 and the Ping is on D21. So what is suppose to happen is if the object is with in a given ping distance, then the camera will turn to view the object and the servo will track the object until the object leaves the ping field at this point the servo goes to center. Any one have any scripts to do that they would be willing to donate Appreciate it Thanks
The ping is on D21 and what else? The ping requires two ports, one for ECHO and one for TRIGGER.
D20 for the ping D21 for the Echo
I do see the ping working and the camera is working and the servo did center
I did enable tracking type of Motion on the camera I enabled servo Tracking and assigned D0 to X axis, nada tried y axis nada RotateNoneFlip None So Im missing something
yeah - you're missing performing any of the activity tutorials.
Do this...
Load ARC
Press Project -> Add Control -> Scripting -> EZ-Script
Press the gear icon on the EZ-Script control
Paste in this code
Save the script
Run the script by pressing the start button
You can find activities in the learn section which will explain how to program and demonstrate how controls work. Press the ? (question mark) on any control to read about it. The CAMERA CONTROL is a good place for you to start using the question mark. Also, there are MANY tutorials in each control
Yea done some of those but they talk about individual actions for individual devices, when it comes to inter-migration between the different devices I have not found much. thanks anyway