Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Accelerometer Help? (http://www.chiefdelphi.com/forums/showthread.php?t=72325)

elbuo 17-01-2009 21:14

Accelerometer Help?
 
I'm trying to use the accelerometer example to see if I can set a specific acceleration rate but everytime I run it over the cRIO it doesn't work. And I don't get the values it shows not even with the manual and 10 people reading it :(

Some help?

Alan Anderson 17-01-2009 22:07

Re: Help?
 
When you say "it doesn't work," what do you expect it to do and what does it do instead? How do you have the accelerometer connected? Please give as much detail as possible so that we can all work together to narrow down the problem quickly.

elbuo 18-01-2009 09:44

Re: Help?
 
I have the cRIO connected via wireless.
I was expecting that when I ran the .vi I could accelerate and it would show me the rate of acceleration but when I move my joysticks it doesn't do anything at all :(

I left the default settings cause I don't understand what they mean :(

EricVanWyk 18-01-2009 10:14

Re: Help?
 
I'd check your wiring first. What ports are the accelerometer plugged into? Is that analog bumper working? Please fully explain your wiring.

What happens when you shake the accelerometer?

The settings indicate the middle point and the sensitivity of the sensor. Basically, they help map voltages to accelerations.


EDIT: Moderators - Can one of you please rename this thread?

pgaston 18-01-2009 10:46

Re: Help?
 
A quick build on the last post. Are you using the dashboard? If not, do. This will help you ensure that your accelerometers are indeed working and plugged into the ports you think they are. (The dashboard helped us!)

elbuo 18-01-2009 10:48

Re: Help?
 
Does the cRIO have an accelerometer...?

EricVanWyk 18-01-2009 11:12

Re: Help?
 
Quote:

Originally Posted by elbuo (Post 803065)
Does the cRIO have an accelerometer...?

No. The accelerometer is a separate board.

elbuo 18-01-2009 11:18

Re: Help?
 
So that means we need to buy one right?

EricVanWyk 18-01-2009 11:27

Re: Help?
 
No, one came in the kit of parts. It is a red board that is 1" square that says Accel on it.

It is shown on page 2 of http://usfirst.org/uploadedFiles/200...r%20Manual.pdf

elbuo 18-01-2009 11:45

Re: Help?
 
Is it the piece connected on top of the cRIO. Connected to one of the slots?
The Digital one?

Mark McLeod 18-01-2009 11:54

Re: Help?
 
No. The Accelerometer came in the padded manila envelope in the KOP and doesn't attach to the cRIO modules.

It needs to be physically wired before it can be attached to anything. It's just a bare 1" square circuit board.

elbuo 18-01-2009 12:38

Re: Help?
 
Then we are missing it :( Cause I just went out to look for it and I didn't find it...
I'll keep searching....
After that I guess I'll figure my way out...



Also, I want to set a specific speed to the jaguars but I can't find where to do it.
I used all the motor examples available but none of them save the settings when I use the joystick...Any help?

Alan Anderson 18-01-2009 19:26

Re: Help?
 
Quote:

Originally Posted by elbuo (Post 803108)
Then we are missing it :( Cause I just went out to look for it and I didn't find it...

Someone should have done an inventory of your Kit Of Parts, using the 2009 KoP Checklist on the http://www.usfirst.org/community/frc...nt.aspx?id=452 page (find it under Section 10 - The Kit of Parts). Ask the person who did it whether your accelerometer board was missing, and where it got put if it was included.

Quote:

Also, I want to set a specific speed to the jaguars but I can't find where to do it.
I used all the motor examples available but none of them save the settings when I use the joystick...Any help?
I'm not sure I understand what you're asking. What does "save the settings" mean?

elbuo 18-01-2009 23:39

Re: Help?
 
Yeah we are actually missing it.
All the teams from PR.

From what I read I can adjust the jaguars right?
I want to set a specific acceleration rate and a specific speed limit.
How can I do it?

Alan Anderson 19-01-2009 10:47

Re: Help?
 
Quote:

Originally Posted by elbuo (Post 803537)
Yeah we are actually missing it.

You had the chance to tell FIRST about missing KoP items the first week.
Quote:

From what I read I can adjust the jaguars right?
I want to set a specific acceleration rate and a specific speed limit.
How can I do it?
You can't "adjust" a Jaguar the way you're describing it. What you can do is control its output, from full reverse to full forward and anything in between.

If you want to limit the maximum output, do it in software with a MIN() function. If you want to have a specific rate of change, do it in software by only changing the control value by a given amount in a given time until it reaches the desired value.


All times are GMT -5. The time now is 13:40.

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