socialgorithm / playground

A place to play around with ideas
GNU Affero General Public License v3.0
2 stars 0 forks source link

Engine API #2

Open reddyalready opened 6 years ago

reddyalready commented 6 years ago

Had a discussion with @aurbano this morning. To prepare for our meeting on Sunday, I thought we should start writing some stuff down :)

Data Structures

Sensors

SensorArray: List<Sensor>

Sensor: 
{
  velocity: int,
  position: {
    x: int   // Only simulating sensors along one line for now
  },
  distance: float   // 0.00 <> 1.00, indicating distance to detected object
  // 1 = no object, 0 = collision
}

Car State

CarState:
{
  throttle: float // -1.00 <> 1.00, where -1 = brake, +1 = full throttle
  steering: float // -1.00 <> 1.00, where -1 = full left steering, +1 = full right steering
}
Jonathan-Rasch commented 6 years ago

I thought the meeting was on Monday, has it changed to Sunday (either works for me)?

reddyalready commented 6 years ago

No no, I’m being an idiot, it’s still Monday!

El El sáb, 26 may 2018 a las 15:22, JonathanLR notifications@github.com escribió:

I thought the meeting was on Monday, has it changed to Sunday (either works for me)?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/socialgorithm/elon-poc/issues/2#issuecomment-392264653, or mute the thread https://github.com/notifications/unsubscribe-auth/AHMSglV3XeeVU2h9SI_OOVI8mXHfd8QAks5t2WUcgaJpZM4UO53y .