What are the other startup modes?

3 posts / 0 new
Last post
zlite
What are the other startup modes?

I've set up a sample track in my basement but haven't set up the lights. How do I get it to start without the lights?

I've tried just commenting out "WaitForGo" but that didn't work

I see this in the Settings.py file. What are the other startupModes?

startupMode = 1 # Startup mode, use 1 for Race.py calling WaitForGo

piborg
piborg's picture
Skipping the light sequence

All of the available image processing modes can be found towards the top of ImageProcessor.py.

Each mode is described in detail with their number here: Race Code Processing states
The ones that are probably most useful to you are:

  1. Ready to race
    This will behave normally, waiting for Race.py to call WaitForGo
  2. Waiting for the start lights
    This is the mode when WaitForGo is called
  3. Following the track
    This is normal racing behaviour, it will not wait for Race.py to be ready

If you still want Race.py to start the robot racing I would leave the startupMode as 1.
Instead swap

WaitForGo()

for

ImageProcessor.SetImageMode(ImageProcessor.FOLLOW_TRACK)

This will skip the light sequence (mode 2) and go straight to driving when called.

zlite
Perfect. Thanks!

Perfect. Thanks!

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.