Kickstarter

We've hit the GO button on our Kickstarter, head over to the Formula Pi Kickstarter page to get involved.

Here you can get your entry to the competition by donating £35 or above.
If you have any problems getting started with the code we're always here to lend a hand so you won't be left in the dark :)

This is a simple example of how your Race Code might look:

### Start of the race ###
WaitForGo()
Speed(100)

### Racing for 10 laps ###
while LapCount() < 10:
    # Drive in the center until turn 2
    AimForLane(0)
    WaitForWaypoint(4)
    # Drive on the middle of the inner blue lane
    # until the back straight
    AimForLane(-1.5)
    WaitForWaypoint(7)
    # Drive on the middle of the outer blue lane
    # until the start / finish line
    AimForLane(+1.5)
    WaitForWaypoint(1)

### End of the race ###
FinishRace()

If you have any questions about coding, the competition, or the Kickstarter please ask on our Formula Pi forum

Tags: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: bash, cpp, perl, python.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.