Go to Post If you water it and nurture it and fertilize it and put it out in the sunlight, it might just grow up to be a big lathe... :) - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2015, 13:02
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Vex Ultrasonic Range Sensor (WPILib)


At 6:33 in this video, the instructor mentions that there is WPILib support for decoding the signal from the Vex Ultrasonic Range sensor mentioned at 4:17 in the video.

Can someone familiar with the relevant WPILib code please clarify how the time to receive the reflected ping is determined? Specifically, is a hardware interrupt set up to detect the reflected ping? If so, does the ISR for that interrupt do the timestamping, or does the ISR just set a flag alert the scheduler to run a task which does the timestamping? Or is the reflected signal detected by polling, and if so, what is the polling frequency and priority?

  #2   Spotlight this post!  
Unread 24-01-2015, 13:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Vex Ultrasonic Range Sensor (WPILib)

It sets up a counter fpga object in semi-period mode.
  #3   Spotlight this post!  
Unread 24-01-2015, 13:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Vex Ultrasonic Range Sensor (WPILib)

Quote:
Originally Posted by Joe Ross View Post
It sets up a counter fpga object in semi-period mode.
Thanks Joe. So it would be polled at 1MHz* by FPGA?


*polling frequency increased from 153KHz (2014) to 1MHz (2015)?

  #4   Spotlight this post!  
Unread 24-01-2015, 16:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Vex Ultrasonic Range Sensor (WPILib)

Quote:
Originally Posted by Ether View Post
Thanks Joe. So it would be polled at 1MHz* by FPGA?


*polling frequency increased from 153KHz (2014) to 1MHz (2015)?

Yes
Closed Thread


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 21:08.

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