View unanswered posts | View active topics It is currently Sat Aug 30, 2014 10:50 pm






Reply to topic  [ 4 posts ] 
"bVexBlackEye" 
Author Message
Rookie

Joined: Sat Jan 08, 2011 6:56 pm
Posts: 7
Post "bVexBlackEye"
Alright so I was browsing through the Functions part of the RobotC for Vex Cortex and PIC and came across a function that was called 'bVexBlackEye'
The note for it says that it turns the Vex Yellow LED "eye" off. I assume this is the VexNet LED on Cortex and Controller. (Correct me if I'm wrong about this)
Here the sample code it provides for how to use it.
Code:
bVexBlackEye = false; //Turns off the VEX yellow eye
bVexBlackEye = true; //Turns on the VEX yellow eye


I tried to put this in a simple program to check its functionality by using an if statement so say if a limit switch is pressed then turn it on and if not then turn its off but when i tried to compile it i got the error
Code:
**Error**:Undefined variable 'bVexBlackEye'. 'short' assumed.


is there something im not doing right with this code
will it even work with the cortex
and has anybody ever used this function before?


Fri Jan 21, 2011 6:34 pm
Profile
Novice
User avatar

Joined: Sat Jul 10, 2010 3:06 pm
Posts: 86
Location: Roanoke, VA
Post Re: "bVexBlackEye"
I've used it before, but I only have the PIC. (I don't know if it works with the Cortex)

Here's the syntax I used (no problems):
Code:
bVexBlackEye = true; //Turns off yellow light on PIC
bVexBlackEye = false; //Turns on yellow light on PIC

_________________
Check out my website! www.RoboDesigners.com

VRC Team 2190

Twitter: @RoboDesigners


Fri Jan 21, 2011 11:39 pm
Profile WWW
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: "bVexBlackEye"
You're setting the flag correctly, but it is only supported on the VEX PIC. I believe the status lights on the Cortex are controlled by the Master firmware, and not controllable withing ROBOTC (but I could be mistaken about that).

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Sat Jan 22, 2011 11:01 am
Profile
Rookie

Joined: Sat Jan 08, 2011 6:56 pm
Posts: 7
Post Re: "bVexBlackEye"
Oh. Well that stinks because it would be awesome to be able to control the LEDs on the Cortex. It'd be cool if some one found a way to mod the master firmware to allow it. But I guess thats just wishful thinking.


Sat Jan 22, 2011 1:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.