Search found 12 matches

by roboteer
22 Mar 2012, 17:21
Forum: Mindstorms Software
Topic: NXC float
Replies: 6
Views: 7176

Re: NXC float

Yup, I got it working. I had a very old version of the firmware installed. By the way, it matters how the color sensor is physically installed. I installed it on the back of the robot and my program now drives it backwards around the track. In case anyone wanted to know.

Thanks for all the help.
by roboteer
19 Mar 2012, 19:44
Forum: Mindstorms Software
Topic: NXC float
Replies: 6
Views: 7176

NXC float

Hi, I ran the following simple code and the NXT 2.0 brick just hangs. I keep hearing some ticks but nothing else happens. I upgraded the firmware to 1.31 to make sure but that did not help. Does anyone have any ideas? I assume that float variables are supported in NXT 2.0. Here is the code snippet t...
by roboteer
09 Mar 2012, 17:13
Forum: Mindstorms Software
Topic: Bricxcc, NXC, Color Sensor, NXT 2.0
Replies: 16
Views: 17741

Re: Bricxcc, NXC, Color Sensor, NXT 2.0

Does anyone know if it matters which way the color sensor is facing? Does it matter if it is put at the front of the robot versus the rear of the robot?
by roboteer
09 Mar 2012, 17:07
Forum: Mindstorms Software
Topic: Bricxcc, NXC, Color Sensor, NXT 2.0
Replies: 16
Views: 17741

Re: Bricxcc, NXC, Color Sensor, NXT 2.0

I am still working through the old line-follower code. It is very tricky. I did find this sample code. I believe that it is NXC but have not tried it yet. I also do not know if it applies to the default color sensor. Try it at your own risk, of course. :o http://www.techbricks.nl/downloads/line%20fo...
by roboteer
08 Mar 2012, 02:14
Forum: Mindstorms Software
Topic: Bricxcc, NXC, Color Sensor, NXT 2.0
Replies: 16
Views: 17741

Re: Bricxcc, NXC, Color Sensor, NXT 2.0

Thank you so much Mr. Hansen. This is very helpful. I will try this and will let you know if I have further questions. Your book has been very helpful, by the way. I also found your Bricxcc tool very helpful.

Cheers
by roboteer
07 Mar 2012, 21:30
Forum: Mindstorms Software
Topic: Bricxcc, NXC, Color Sensor, NXT 2.0
Replies: 16
Views: 17741

Re: Bricxcc, NXC, Color Sensor, NXT 2.0

Here is a code snippet of where I make the motors do something depending on the color value. switch (SV){ case INPUT_BLACKCOLOR: // 1 OnFwd(OUT_A, FAST_SPEED); OnFwd(OUT_C, SLOW_SPEED); break; case INPUT_BLUECOLOR: // 2 OnFwd(OUT_A, SLOW_SPEED); OnFwd(OUT_C, SLOW_SPEED); break; case INPUT_GREENCOLOR...
by roboteer
07 Mar 2012, 19:28
Forum: Mindstorms Software
Topic: Bricxcc, NXC, Color Sensor, NXT 2.0
Replies: 16
Views: 17741

Bricxcc, NXC, Color Sensor, NXT 2.0

Hi, I am trying to get the code from Mr Hansen's book for the line follower to work with the new color sensor in NXT 2.0. Has anyone been able to make the new robot follow the black line using the new color sensor instead of the old light sensor? Is there any NXC sample code to do this. My robot fol...
by roboteer
12 Aug 2011, 22:42
Forum: Mindstorms Software
Topic: Prolog to NXT via Bluetooth
Replies: 2
Views: 3851

Prolog to NXT via Bluetooth

Hi all, I would like to create a Prolog program that would send commands to the NXT robot via Bluetooth. This is similar to what has been done with Legolog but I want to do it using Bluetooth and NXC. Prolog does not have any support for Bluetooth to NXT so I would have to have the NXC programs inte...
by roboteer
12 Aug 2011, 22:25
Forum: Mindstorms Software
Topic: Brixcc nxc nxt master program
Replies: 6
Views: 6651

Re: Brixcc nxc nxt master program

Thank you very much Mr. Hansen. I will try this. :geek:
by roboteer
12 Aug 2011, 17:36
Forum: Mindstorms Software
Topic: Master program pc to NXT with Bluetooth
Replies: 1
Views: 3123

Master program pc to NXT with Bluetooth

Hi, I would like to write a master program to control the NXT brick from my pc. I am thinking of using c++ or c# but don't know if there are any libraries or packages available. Does anyone know where there may be some sample code or if the .Net framework comes with Bluetooth libraries? thank you ga...