Page 1 of 3

NXT Program ideas

Posted: 23 Apr 2011, 05:20
by nxtboyiii
Post your program ideas here!
It could be game ideas, useful program ideas, etc.

Re: NXT Program ideas

Posted: 23 Apr 2011, 05:49
by muntoo
I may make a Tetris later (way, way later). :)

Or mess around with the original "Portals" idea. (Also way, way later.)

Re: NXT Program ideas

Posted: 23 Apr 2011, 17:05
by i-fixed-it-44
I'm thinking of making a line follower.

Re: NXT Program ideas

Posted: 23 Apr 2011, 17:34
by muntoo
Did I mention my current projects? They are:
  • Bezier Curve Follower (It can also move the robot to the specified coordinates in 2D Cartesian space [cm])
  • Memory Manager
Possible projects I'll retake up:
  • Virtual Keyboard
  • SnakeWorm 2.0
  • Something to do with Bluetooth, but I can't remember

Re: NXT Program ideas

Posted: 23 Apr 2011, 20:04
by nxtboyiii
I made a nice function called scanf. You choose the letters with the left and right buttons, center for next letter, and exit for done.

Re: NXT Program ideas

Posted: 11 May 2011, 11:52
by dudmaster
muntoo wrote:Did I mention my current projects? They are:
  • Bezier Curve Follower (It can also move the robot to the specified coordinates in 2D Cartesian space [cm])
  • Memory Manager
Possible projects I'll retake up:
  • Virtual Keyboard
  • SnakeWorm 2.0
  • Something to do with Bluetooth, but I can't remember
Virtual Keyboard? Got any code? Sounds interesting. I'v built one, too.
I saw your post on the Memory Manager. I built something like it.

Re: NXT Program ideas

Posted: 11 May 2011, 21:53
by muntoo
The Virtual Keyboard project was abandoned (over a year ago) due to bugs in the compiler, but I think they should be fixed by now, so I'll start it again some time later.

The code is here.

Re: NXT Program ideas

Posted: 14 May 2011, 15:39
by dimasterooo
This one's for Muntoo: Remember you made that NXC virus? I tried something like it with RobotC but it didn't work, cuz I wanted to make a passcode lock for my NXT. Might be something you could do in NXC?

Re: NXT Program ideas

Posted: 14 May 2011, 20:16
by muntoo
dimasterooo wrote:This one's for Muntoo: Remember you made that NXC virus? I tried something like it with RobotC but it didn't work, cuz I wanted to make a passcode lock for my NXT. Might be something you could do in NXC?
[For reference, here's the "virus" he's talking about.]

Bluetooth functionality is limited in NXC... :( If you want the virus to spread, of course.

Otherwise (not as deadly):
! Startup.nxc:

Code: Select all

task main()
{
    bool correct = true;

    string pass = "DIE";
    char c = 0x20;

    for(unsigned int i = 0; i < strlen(pass);)
    {
        if(ButtonPressed(BTNLEFT, 0))
        {
            if(c > 0x20)
                c--;
            else
                c = 0x7F;

            while(ButtonPressed(BTNLEFT, 0));
        }

        if(ButtonPressed(BTNRIGHT, 0))
        {
            if(c < 0x7F)
                c++;
            else
                c = 0x20;

            while(ButtonPressed(BTNRIGHT, 0));
        }

        if(ButtonPressed(BTNCENTER, 0))
        {
            if(c != pass[i])
            {
                correct = false;
            }

            ++i;

            while(ButtonPressed(BTNCENTER, 0));
        }
    }

    if(!correct)
    {
        PowerDown();
        //RebootInFirmwareMode();
    }
}
It's a good thing I don't live in Germany...

Re: NXT Program ideas

Posted: 27 May 2011, 09:18
by muntoo
A RegEx engine!