Go to Post I just like that PVC is the most basic need of humankind according to that diagram. Whatever would we do without it?! - Po-ser [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 25-01-2015, 11:47
wre136 wre136 is offline
Registered User
FRC #2461
 
Join Date: Jan 2012
Location: Oklahoma City
Posts: 30
wre136 is an unknown quantity at this point
Adjust Sensor Output to be Zero

We are attemping to use the built-in accelerometer in the new RoboRIO (Just for fun), however when we read it while standing still, it reports -0.014. Either way, it does not read 0.

I want to know if there is a built in function in LabVIEW for normalizing the senors or shifting all of its reading to make it 0 or more close to it so that future reading are accurate. In other word, are the any built in VIs to help calibrate sensor input? I recently learned the ability to put a point-by-point median filter on it to help keep it from jumping around but now just need to help offset it back to zero.

Any ideas?

Will
Mentor
FRC Team 2461 - The METAL-SKINs
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2015, 13:11
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Adjust Sensor Output to be Zero

Keep in mind that most accelerometers (i have not checked the roboRIO) give acceleration in X, Y and Z. The Z axis is typically straight down and should read the effect of gravity (32.174ft/s2). If the robot is not level, a portion of the gravity value will appear on the X and/or Y sensor.

Was the roboRIO perfectly level and/or did you correct for it's orientation?
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2015, 13:23
wre136 wre136 is offline
Registered User
FRC #2461
 
Join Date: Jan 2012
Location: Oklahoma City
Posts: 30
wre136 is an unknown quantity at this point
Re: Adjust Sensor Output to be Zero

I am reading both the x and y values from the accelerometer leaving z out of it. However, it is a possibility that might not be level since it on a robot at the moment. That is something I'll verify later.

However, still, is there a way to bring it to 0 pretending that it is level? This would be a technique I would like to be familiar with when dealing with any kind of sensor.

Will
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2015, 13:31
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Adjust Sensor Output to be Zero

It is good that you realize the need to do this step of calibration. Keep in mind that all it will do is record a value that will be added or subtracted from each reading. If the library doesn't have this, you can do it yourself immediately after the read.

I just looked, and the accelerometer VIs do not do this for you.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2015, 19:56
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,713
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: Adjust Sensor Output to be Zero

If you are using a 6-wheel drivetrain like what was provided in the KOP,
The acceleration due to gravity will shift around a little as the robot rocks.

In that case you will need to take readings when the robot is in the two extreme positions, then decide how you want to subtract the sum from future readings.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 08:03.

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