View unanswered posts | View active topics It is currently Fri Dec 19, 2014 12:20 am






Reply to topic  [ 7 posts ] 
Suggestion for Robotc 
Author Message
Rookie

Joined: Sat Jul 05, 2014 1:23 pm
Posts: 5
Post Suggestion for Robotc
My goal for is to iterate through the #pragma that I defined for my sensors and retrieve the type of sensor and the name that I defined for it.
I have been searching for a way to do this and could not find one.

If this is not a possibility, my suggestion would be to implement a way to get the user defined name of the motors and sensors based upon their index.


Sat Jul 05, 2014 1:29 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Suggestion for Robotc
Could you give us a use-case for this functionality? In other words, what would you need it for?

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Jul 06, 2014 1:25 am
Profile WWW
Rookie

Joined: Sat Jul 05, 2014 1:23 pm
Posts: 5
Post Re: Suggestion for Robotc
I would use it for making a menu system on the LCD screen. So for Vex, I could loop through the names of the sensors, and also their values. If I could retrieve the names of the sensors that I defined I wouldn't have to make a separate list. I also wouldn't have to change that list if I were to add another sensor, I could simply add another sensor and it would automatically loop through and retrieve it's name and value.


Sun Jul 06, 2014 9:43 pm
Profile
Rookie

Joined: Sat Jul 05, 2014 1:23 pm
Posts: 5
Post Re: Suggestion for Robotc
Also, what would the possibility be of having the program remember bookmarks after closing? I find it hard sometimes to navigate my code when it gets cluttered.

I know RobotC does not make project files like visual studio and other programs, which I assume the bookmarks' locations would be saved in.


Sun Jul 06, 2014 9:46 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Suggestion for Robotc
ROBOTC already makes "bookmarks" for the functions you create. Just make sure the menu level is set to at least "expert":
Image

When you hit compile, your own entries should appear under "User Defined":
Image

I'll let them know about your request for the names and stuff and ask if they can give you an official answer, one way or the other.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Jul 06, 2014 11:41 pm
Profile WWW
Rookie

Joined: Sat Jul 05, 2014 1:23 pm
Posts: 5
Post Re: Suggestion for Robotc
Ah, by bookmarks, I mean an index which one could jump to when viewing a file. The user functions only serve a purpose for a drag-and-drop functionality.

Although there is the ability to jump to definition in the right-click context menu, so maybe I'm just being picky on that.

Anyways, thank you so much for your help!


Mon Jul 07, 2014 11:47 pm
Profile
Rookie

Joined: Thu Oct 02, 2014 5:02 pm
Posts: 2
Post Re: Suggestion for Robotc
Any word on reading the #pragma to see what hardware is connected to a robot? This seems like a pretty powerful feature.
My FTC team is working on a library of sorts, and it would be really cool to be able to do things like monitor the power status of any sensor multiplexers connected to the bot, without the user of the library having to configure anything.

Or maybe it's already been added, and I just can't find it? In any case, thank you for your time. :)


Mon Oct 13, 2014 4:10 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 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.