added roadSensor class with attributes, detectLaneEdges method
This commit is contained in:
parent
77183117af
commit
a4e37faa04
1 changed files with 11 additions and 0 deletions
11
RoadSensor.java
Normal file
11
RoadSensor.java
Normal file
|
@ -0,0 +1,11 @@
|
|||
public class RoadSensor {
|
||||
private boolean hazardDetected; //flag for whether a hazard is detected
|
||||
private String roadwayDetails; //stores road quality details, eg wet, uneven
|
||||
private double[] laneEdges; //stores distance to left/right lane edges
|
||||
private String roadSigns; //stores roadsign text for visible signs
|
||||
|
||||
public void detectLaneEdges() {
|
||||
laneEdges[0] = 1;
|
||||
laneEdges[1] = 1.1;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue