ssowders3 / mini-mARVin

4180 final project
0 stars 1 forks source link

Merge Sonar code into new_motor_control #11

Open aallaire91 opened 6 years ago

aallaire91 commented 6 years ago

I (Ali) am currently working on this. The end result will output a list of obstacle locations, given as (x,y) pairs of displacement from the vehicle.

For example:

if the front sensor detects an obstacle 20 cm away and the left sensor detects and obstacle 30 cm away, a functions called getObstacleLoc will output [(0,20), (-30, 0)]. if we know the location of the vehicle, which I assume we will with Andrew's code; we can simply plot these locations on the gui by adding these x,y coordinates to the current x,y coordinates of the vehicle.