Thread: Magnetic Sensor
View Single Post
  #7   Spotlight this post!  
Unread 27-02-2013, 20:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,062
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: Magnetic Sensor

Quote:
Originally Posted by Kevin Sevcik View Post
You seem to be in a sort of no-man's land here with that setup. You should be getting 6 counts per revolution like that. That's not enough counts per second to do any reasonable speed control. On the other hand, it's probably too many counts per second to use 60/counter.GetPeriod() to give you an RPM to control. You can try this method, but I don't think it'll be super stable for your current sensor setup.
...
The whole idea here is that you only want one pulse per revolution of the wheel.
Kevin,

If he's getting good counts with that sensor, all he has to do is change the getPeriod() FPGA sample averaging ring buffer from the default value of "1" to "6".

For Java and C++, this requires making a small change to the WPILib code.

http://www.chiefdelphi.com/forums/sh...7&postcount=24




Last edited by Ether : 27-02-2013 at 21:28.
Reply With Quote