Author |
Message |
milan95
Rookie
Joined: Sun Sep 12, 2010 10:38 am Posts: 4
|
 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 |
|
 |
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 409
|
 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
|
Mon Sep 13, 2010 9:45 am |
|
 |
joef
Rookie
Joined: Mon Nov 15, 2010 12:01 pm Posts: 2
|
 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 |
|
 |
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 409
|
 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.
|
Mon Nov 15, 2010 12:51 pm |
|
 |
joef
Rookie
Joined: Mon Nov 15, 2010 12:01 pm Posts: 2
|
 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 |
|
 |
Enterprize
Rookie
Joined: Tue Nov 23, 2010 9:51 pm Posts: 3
|
 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 |
|
 |
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 409
|
 Re: VEXnet Joystick Accelerometer Value
Since ROBOTC uses the default firmware, we do not have control over when it will be available. 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.
|
Wed Nov 24, 2010 10:31 am |
|
 |
Enterprize
Rookie
Joined: Tue Nov 23, 2010 9:51 pm Posts: 3
|
 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 |
|
 |
Sam1234
Rookie
Joined: Tue Mar 24, 2015 4:46 pm Posts: 2
|
 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?
|
Tue Mar 24, 2015 4:57 pm |
|
|