added identifyHazard
This commit is contained in:
parent
9d9daaf9d9
commit
4758ff07fa
1 changed files with 12 additions and 0 deletions
|
@ -16,5 +16,17 @@ public class RoadSensor {
|
|||
return 45;
|
||||
}
|
||||
|
||||
public int identifyHazard() {
|
||||
//image processing algorithms from external cameras would
|
||||
//review data and identify a hazard
|
||||
//types of hazards could be
|
||||
//Stopped vehicle
|
||||
//Road construction
|
||||
//lane closure
|
||||
//pedestrian on roadway
|
||||
//stationary object on roadway
|
||||
//for testing, this function will return 0 to signal no hazard detected
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue