How to change the area where the machine runs

3 posts / 0 new
Last post
tatsusiro
tatsusiro's picture
How to change the area where the machine runs

Nice to meet you.

When changing the area running the race from (0 red | green) to (-1 green | blue),
which parameter should I adjust?

Arron Churchill
Arron Churchill's picture
Changing lanes

There are a few ways of making the change, but the easiest is to call AimForLane in Race.py like this:

AimForLane(-1)

The code has a RacePy samples folder with some examples, see SimpleLap.py for an example of how you can use this to change lane during a lap.

tatsusiro
tatsusiro's picture
Thank you!

Sorry for my late response, my work was busy.

I changed value of ”targetTrackPosition” in the Monster standard code ”Settings.py” from 0.0 to -1.0


targetTrackPosition = 0.0
targetTrackPosition = -1.0

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.