How to install the code

2 posts / 0 new
Last post
krolfson
How to install the code

We are trying to figure out how to load and run the code to test our piBorg. Currently we have the robot built, the pi-Zero hooked to monitor, keyboard, mouse, and internet. We have the sourceforge files (and directories) copied on the pi-Zero. What is next?

Sorry if we didn't find the instructions. We want to simulate a physical track and watch the robot in action rather than try the software simulation.

Any help would be appreciated.

Thanks

piborg
piborg's picture
Getting the proper Race Code running

The first thing you will need to do is get the camera and OpenCV ready.

If you have not already go to these instructions: Standard Formula Pi SD card image
You will need to go through the Setting up the camera instructions to do this.

Once that is done the code should be ready to run like so:

cd ~/formulapi
sudo ./Formula.py

At this point the code should be waiting for the lights.
A quick test is to put a large green card towards the top of the camera image.
If it can see the bright green it should turn the LED on the ZeroBorg on and print a message to the screen.
Repeat with a red card then the green card again and the code should turn the LED off and start running the race.

If the code is running happily you can make it run at startup by following the Final notes section of the SD card instructions.

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.
Comment Images
Files must be less than 10 MB.
Allowed file types: png gif jpg jpeg.
Comment Attachments
Files must be less than 10 MB.
Allowed file types: txt pdf nfo doc docx rtf jpg png gif bmp zip tar gz csv xls.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.