View Single Post
  #10   Spotlight this post!  
Unread 20-02-2015, 16:08
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Re: I got it to work! USB mice

Quote:
Originally Posted by Arhowk View Post
I'd also like to know... In my experience most mouse only maintain about 95% accuracy (meaning that the same motion repeated an infinite number of times will have a 5% deviance in delta distance). At the start of the season I expected to integrate the accelerometer to obtain velocity, but it's noise is horrendous. If the mouse gets good data, than it might be a good option.
I don't yet know how accurate it is. We are printing a plastic board to hold the circuitry to better mount it on a practice bot. I'll update this thread with how well it works once we know. However, the manufacturer claims it can detect speeds up to 10 feet/sec and has a resolution of 1000 pixels per inch. When leaving it stationary on carpet similar to competition carpet, it had an error of about 1 pixel (or 1/1000 in) every five minutes. This was not rigorously tested.

Quote:
Also, whats the issue with
Code:
MouseInfo.getPointerInfo().getLocation().x
Two issues: first, that requires a screen to be set up as the pointer only exists with a display. That would have been possible to do (set up a dummy XServer on the roboRIO) but you would have to constantly reset the pointer's position each time you got its location as once it reaches the end of the imaginary screen, it wouldn't go any further. That was something I was prepared to do as well if this didn't pan out, but getting the raw data seemed more elegant to me.

Quote:
Originally Posted by tomy View Post
This would be used to replace the gyro then? How close to the ground does the mouse have to be?
One mouse could not replace the gyro as it only measures linear distance. However, two mice (and there are two USB ports) could replace the gyro. That is our intention if this ends up working reliably (see above). As far as distance to the ground, pretty close. It's a gaming mouse, so it was designed to not register anything if it's more than even a quarter of an inch off the ground (so that a gamer could move the mouse forward for a game and pick it up to reset it on their mouse pad without redacting the action they just made in game), so we're using a smooth and curve-ended plastic board for it to slide on with springs holding it to the ground. The springs will hopefully allow it to slide up the ramps.

Quote:
Originally Posted by JesseK View Post
This is a pretty awesome achievement. Position this guy at the center of rotation, and the measurement is very precise. Do you know if it works on the HDPE surface of the scoring platform? I know mice tend to go crazy if used on glass, or sometimes even an overly-polished conference room table.
Putting it at the center of rotation does not need to be done if two mice are used to get actual rotation. However, lining them up along the robot's x and y axis will be the challenge, considering the resolution this mouse has...
I do not know if it will work on the scoring platform. All it needs is imperfections on the surface at least 1/500th of an inch for it to work. Even if not, the main purpose of this was to drive precisely in auto, and we can just tell it to go around.
Reply With Quote