ROBOTC.net forums
http://www.robotc.net/forums/

F-Zero SNES playing robot
http://www.robotc.net/forums/viewtopic.php?f=15&t=772
Page 1 of 1

Author:  CC335 [ Wed Oct 01, 2008 4:31 pm ]
Post subject:  F-Zero SNES playing robot

I have a collection of F-Zero videos from a guy called faust. I was thinking of programing a robot to play F-Zero, and I have been using the videos as research. I would like help in programing the robot. here is my code so far, I still have to make the Include files for the programs so I can make the program in modules:
Code:
#pragma config(Hubs,  S1, HTServo,  HTServo,  none,     none)
#pragma config(Servo,  srvo_S1_C1_1,    servoA,               tServoNormal)
#pragma config(Servo,  srvo_S1_C1_2,    servoB,               tServoNormal)
#pragma config(Servo,  srvo_S1_C1_3,    servoC,               tServoNormal)
#pragma config(Servo,  srvo_S1_C1_4,    servoD,               tServoNormal)
#pragma config(Servo,  srvo_S1_C1_5,    servoE,               tServoNormal)
#pragma config(Servo,  srvo_S1_C1_6,    servoF,               tServoNormal)
#pragma config(Servo,  servo1,          servoG,               tServoNormal)
#pragma config(Servo,  servo2,          servoH,               tServoNormal)
#pragma config(Servo,  servo3,          servoI,               tServoNormal)
#pragma config(Servo,  servo4,          servoJ,               tServoNormal)
#pragma config(Servo,  servo5,          servoK,               tServoNormal)
#pragma config(Servo,  servo6,          servoL,               tServoNormal)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

int mode1;
int mode2;
int mode3;
bool boost;
int modetrack;
bool drift;
bool wind;
int track;

task main()
{
  mode1 = 1;
   modetrack = 1;
   while(mode1 == 1)
  {
     if(nNxtButtonPressed == 2)
     {
        --modetrack;
        wait10Msec(100);
     }
     if(nNxtButtonPressed == 1)
     {
        ++modetrack;
        wait10Msec(100);
     }
     if (modetrack == 1)
     {
        eraseDisplay();
        nxtDisplayCenteredTextLine(2, "Mute City");
        if (nNxtButtonPressed == 3)
        {
           ++mode1;
        }
     }
     if (modetrack == 2)
     {
       eraseDisplay();
       nxtDisplayCenteredTextLine(2, "Big Blue");
       nxtDisplayCenteredTextLine(4, "NOT PROGRAMED YET");
     }
   }
}

Any usable code is desired, and anyone who would like to write partial code or full Include files for the project will get credit if their code is used, so no odd off-topic snipits of code to try to get credit.

Author:  CC335 [ Thu Oct 02, 2008 5:15 pm ]
Post subject:  Re: F-Zero SNES playing robot

...

I guess no one else is interested

Anyone?

...

Author:  mightor [ Fri Oct 03, 2008 4:17 pm ]
Post subject:  Re: F-Zero SNES playing robot

Sorry mate, I don't have a SNES and I have no idea what F-Zero is :) Can't help you, man.

Xander

Author:  Ford Prefect [ Fri Oct 03, 2008 4:35 pm ]
Post subject:  Re: F-Zero SNES playing robot

I know what f-zero is (Xander: Google is your friend ;-) ) - but I don't have the game and neither a Nintendo nor a servo mux :(

Author:  CC335 [ Fri Oct 03, 2008 6:00 pm ]
Post subject:  Re: F-Zero SNES playing robot

I just need basic algorithms for driving. I don't need course specifics.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/