ROBOTC.net forums
http://www.robotc.net/forums/

VEXnet Joystick Accelerometer Value
http://www.robotc.net/forums/viewtopic.php?f=53&t=2578
Page 1 of 1

Author:  milan95 [ Sun Sep 12, 2010 10:43 am ]
Post subject:  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.

Author:  jbflot [ Mon Sep 13, 2010 9:45 am ]
Post subject:  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

Author:  joef [ Mon Nov 15, 2010 12:08 pm ]
Post subject:  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???

Author:  jbflot [ Mon Nov 15, 2010 12:51 pm ]
Post subject:  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.

Author:  joef [ Thu Nov 18, 2010 3:01 pm ]
Post subject:  Re: VEXnet Joystick Accelerometer Value

Is there a target date for making the AccelZ readings available in the firmware??

Author:  Enterprize [ Tue Nov 23, 2010 9:55 pm ]
Post subject:  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?

Author:  jbflot [ Wed Nov 24, 2010 10:31 am ]
Post subject:  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.

Author:  Enterprize [ Wed Nov 24, 2010 3:38 pm ]
Post subject:  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.

Author:  Sam1234 [ Tue Mar 24, 2015 4:57 pm ]
Post subject:  Re: VEXnet Joystick Accelerometer Value

Can you somebody help me and get a code to access the accelerometer in the vex controller. Me and my teacher have mad this thing where two motor control a etch-a-sketch. The left joystick controls the the left to right movment of the etch-a-sketch and the right joystick controlls up and down. can you help me figure out how to controll the etch-a-sketch with the accelerometers?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/