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.
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.