Go to Post This is an open forum and it is a privilege to post here, if you don't agree with the rules then just don't post here. - dez250 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2015, 19:03
Wyspar Wyspar is offline
Registered User
FRC #5132 (RoboClovers)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: żDe donde eres?
Posts: 20
Wyspar is an unknown quantity at this point
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.
Attached Thumbnails
Click image for larger version

Name:	2015 auto.png
Views:	33
Size:	7.6 KB
ID:	18134  

Last edited by Wyspar : 03-02-2015 at 19:06.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2015, 19:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2015, 19:26
Wyspar Wyspar is offline
Registered User
FRC #5132 (RoboClovers)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: żDe donde eres?
Posts: 20
Wyspar is an unknown quantity at this point
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2015, 20:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous with sonar and colour vision

To run debug:
  • Put the robot up on blocks
  • Connect to the robot
  • Power the robot
  • Open Robot Main.vi
  • On the top left is a white arrow, click on it to run in debug
  • After the program finishes loading
    • Bring up the Autonomous block diagram
    • Right-click on the wire output of the Sonar and select probe. You should get a new pop-up window ready to display the value of wires. You can add probes anywhere you like.
    • You can also add indicators to any wire or vi node and watch those on the Autonomous front panel
    • Put something in front of the sonar for it to see.
    • Enable Autonomous and watch the value in the probe window
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2015 at 20:53.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi