|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Autonomous with sonar and colour vision
I have the analog sonar vi called to see if something is less than or equal to the value given to back up for 1 second.
I am just wondering is this the right way to do this because I tested this, and it did not work. I have the colour vision processing.vi working with the camera feedback to the dashboard, but I have tried to write and read if it saw a colour. Last edited by Wyspar : 03-02-2015 at 19:06. |
|
#2
|
|||||
|
|||||
|
Re: Autonomous with sonar and colour vision
What are the conditions (robot on blocks or on the ground) and what do you see happen?
It doesn't seem like -.1 is enough power to move a robot. That sequence needs one more frame at the end that stops the drive by setting it to zero. The way it is now, the drive gets turned on, but is never turned off again. You can try running in Debug and probe or display the value of the sonar output. |
|
#3
|
|||
|
|||
|
Re: Autonomous with sonar and colour vision
The robot was on the ground and did not move.
I put my hand in front of the sonar and nothing. The rest of the sequence has the drive values set to 0. I just didn't show it. How do you debug the code when the robot is running? |
|
#4
|
|||||
|
|||||
|
Re: Autonomous with sonar and colour vision
To run debug:
Last edited by Mark McLeod : 03-02-2015 at 20:53. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|