View unanswered posts | View active topics It is currently Fri Aug 22, 2014 3:56 am






Reply to topic  [ 8 posts ] 
VEXnet Joystick Accelerometer Value 
Author Message
Rookie

Joined: Sun Sep 12, 2010 10:38 am
Posts: 4
Post VEXnet Joystick Accelerometer Value
Hi there,
I was wondering how to access the accelerometer values for the onboard accelerometer from the VEXnet joystick. Is this possible in ROBOTC?
Thanks

UPDATE: Nevermind, I managed to find the answer in the archived forums. Thanks anyway.


Sun Sep 12, 2010 10:43 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: VEXnet Joystick Accelerometer Value
I'm glad you found the answer to your question. Just in case anyone else is wondering the same thing, you can access the values of the accelerometer using...

vexRT[AccelX] //access the X-axis value
vexRT[AccelY] //access the Y-axis value
vexRT[AccelZ] //access the Z-axis value

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Sep 13, 2010 9:45 am
Profile
Rookie

Joined: Mon Nov 15, 2010 12:01 pm
Posts: 2
Post Re: VEXnet Joystick Accelerometer Value
I'm getting good readings from AccelX and AccelY, but for AccelZ there are no readings--it's just = 0.

We're using latest RobotC 2.30 with all firmware updated.

Is this a firmware issue or is our VEXnet joystick simply defective???


Mon Nov 15, 2010 12:08 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: VEXnet Joystick Accelerometer Value
Thanks for posting your comment. The good new is that this is a property of the firmware, and not your Joystick.
The Joystick firmware currently only passes the "0" value to the Cortex. ROBOTC uses the default firmware file.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Nov 15, 2010 12:51 pm
Profile
Rookie

Joined: Mon Nov 15, 2010 12:01 pm
Posts: 2
Post Re: VEXnet Joystick Accelerometer Value
Is there a target date for making the AccelZ readings available in the firmware??


Thu Nov 18, 2010 3:01 pm
Profile
Rookie

Joined: Tue Nov 23, 2010 9:51 pm
Posts: 3
Post Re: VEXnet Joystick Accelerometer Value
What is the meaning of the value returned, in units or otherwise? I assume it is acceleration, but it could have been converted already.

I am unable to run bugtesting at the moment, so I can't see when the values are changing, or to what?


Tue Nov 23, 2010 9:55 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: VEXnet Joystick Accelerometer Value
Quote:
Is there a target date for making the AccelZ readings available in the firmware??


Since ROBOTC uses the default firmware, we do not have control over when it will be available.

Quote:
What is the meaning of the value returned, in units or otherwise?


The joystick does return acceleration values, ranging from -127 to +127. If you connect your robot/joystick to the computer over VEXnet, you can view the values returned using the Robot > Remote Control Troubleshooter > VEXnet Cortex Controller in ROBOTC.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Nov 24, 2010 10:31 am
Profile
Rookie

Joined: Tue Nov 23, 2010 9:51 pm
Posts: 3
Post Re: VEXnet Joystick Accelerometer Value
Currently, I need to program using the Male/Male USB Cable because RobotC isn't responding to the driver, or something to that nature, so I am unable to use troubleshooter, as the dongle needs to be attached.


Wed Nov 24, 2010 3:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.