Skip to content

RC Car Interface

Anderson Molter edited this page Aug 13, 2021 · 3 revisions

About

An interface is within the Unity application that will allow you to connect to the RC car and interact with the car.

Download

To use this interface, download the zip here.

Unzip it and run LTG_PROJECT_3D_SIMULATION.exe

Finally Click RC Car Interface!

Instructions

Below is what you will see when you open up RC car interface.

  1. PID Constant Values - Each of these values will change the constant within the PID controller running on the car.
  2. Speed - Changes the minimum and maximum speed the car will travel.
  3. Results
    1. Avg Error- The average of errors the car reported during a race.
    2. Last Lap - Time of last lap driven
    3. Score - Calculated based on time, distance, and speed. Rewards for higher average speed, shorter time, and error closeness to 0
  4. IR Tracker Indicators
    1. Yellow - Car is either disconnected or not currently on the track.
    2. Red - IR sensor reported line not under it.
    3. Green - IR sensor reported line is currently under it.
  5. Current Lap Time - Current time spent on one race designated by user.
  6. Menu - Takes you back to main menu.
  7. Start Race - Clicking this will start the timer and will start the collection of average, error, time and speed.
  8. Reset Interface - Reloads application incase of error or connection issue.
  9. Black Line - If it says black line, the car is currently looking for a black line to follow, if it says white line, the car currently is looking for a white line to follow.
  10. Controller Dropdown
    1. PID Controller - If selected, car automatically looks for line and will start following automatically.
    2. Manual Controller - Allows user to control car manually using arrow keys on keyboard.
  11. Network Options
    1. Hostname - Enter IP address of the car you would like to connect to.
    2. Is Connected - Will be red if no car is connected, and turns green if one is connected.
    3. Connect Button - Sends a request to the car to connect to it. May have to click twice to connect.
Clone this wiki locally