Idea: Visual NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

Great.
ps. he pm'ed me
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

Ugh. Wrote a whole post, then SourceForge logged me out. =P

Summary: 0.1.0.6 will be cool. Not ready yet though, wanna add minimap and pseudo-scrollbars.

Here's a quick preview of 0.1.0.6 (note that it lags only because FRAPS hates me):

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

Not to resurrect an old topic, but I just didn't have time to work on V-NXC over the summer. Now that school's in full swing again, however, I have more time.

Anyhow, here's what I've been working on, and plan to implement soon (right now I have a fork over on BitBucket where I'm testing my new code):
  • I decided that just being able to save the code to a file was impractical for development, so I've decided to have it compile code itself.
  • Which means that it will either come with or make it easy to find/obtain a copy of the nbc/nxc compiler, and will manage compilation/downloading/running itself. Hopefully.
  • So far tests are looing promising :)
  • Also still looking to add a mini-map and pseudo-scrollbars (I can steal code from my 'FilmFree' project), but this will have to wait for another time/fork.
  • Gotta add some more settings! :)
Just keeping you informed,
Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Idea: Visual NXC

Post by mightor »

This is your thread, is it not? I think it's OK to resurrect it :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

Just a little progress update: http://screenr.com/tg0s

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
linusa
Posts: 228
Joined: 16 Oct 2010, 11:44
Location: Aachen, Germany
Contact:

Re: Idea: Visual NXC

Post by linusa »

Cool! :-)
RWTH - Mindstorms NXT Toolbox for MATLAB
state of the art in nxt remote control programming
http://www.mindstorms.rwth-aachen.de
MotorControl now also in Python, .net, and Mathematica
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Idea: Visual NXC

Post by mightor »

Holy <whole bunch of expletives not suitable for forums>! That looks fantastic, man! Great job.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

mightor wrote:Holy <whole bunch of expletives not suitable for forums>! That looks fantastic, man! Great job.
linusa wrote:Cool! :-)
Thank you very much! There's lots more to do still however.. :ugeek:

Still wondering what the format is for telling the NBC compiler the USB address of an NXT brick.

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
linusa
Posts: 228
Joined: 16 Oct 2010, 11:44
Location: Aachen, Germany
Contact:

Re: Idea: Visual NXC

Post by linusa »

sidneys1 wrote: Still wondering what the format is for telling the NBC compiler the USB address of an NXT brick.
The nbc help output says:

Code: Select all

Syntax: nbc [options] filename [options]
   -S=<portname>: specify port name (usb), brick resource name, or alias
...
If you only have one brick connected via USB, that's easy. We always use just nbc -S=usb ....

If you have more bricks connected, I guess you need the resource name. When you start BricxCC, there's a drop down list with former connected bricks. I found something like this on my pc:

Code: Select all

USB0::0X0694::0X0002::00165304318C::RAW
0x0694 is the vendor ID for LEGO, and 0x0002 is the product ID for the NXT. I guess USB0 is the first USB bus on my machine -- this might change to USB1 or USB2, if a different USB port is used -- no idea. 00165304318C is the MAC / serial no. of the NXT. I'd just adapt this to other NXTs. I'd leave the "raw" and try it. Then maybe nbc -S=USB0::0X0694::0X0002::00165304318C::RAW ... would work.

I guess the resource string is somehow Fantom talk, so you might want to check the Fantom SDK or header or examples or docs to see if there's more info on that.

Edit: And if you're really lucky, then "alias" in the help text just stands for an NXT name you can pass to nbc, like nbc -S=MyRobot.
RWTH - Mindstorms NXT Toolbox for MATLAB
state of the art in nxt remote control programming
http://www.mindstorms.rwth-aachen.de
MotorControl now also in Python, .net, and Mathematica
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Re: Idea: Visual NXC

Post by spillerrec »

I have never needed to specify anything to download via USB, not even "-S=usb" and this have always worked for me. (I only own one NXT.)
I know there are a far amount of Linux/Mac tutorials about setting up NXC (using nbc) together with BT, you could try searching for those, they might contain more info.
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 13 guests