diff --git a/media/Mapper/Mapper UML.drawio.svg b/media/Mapper/Mapper UML.drawio.svg new file mode 100644 index 0000000..35599b4 --- /dev/null +++ b/media/Mapper/Mapper UML.drawio.svg @@ -0,0 +1,4 @@ + + + +
MotorController
- directionPin: int
- stepPin: int

+ driveSteps(int direction, int steps): void
+ MotorController(int directionPin, int stepPin): MotorController
GyroSensor
- SCLPin: int
- SDAPin: int
+ getAzimuth(): int
+ GyroSensor(int SCLPin, int SDAPin): GyroSensor
Measurement
- location: Coordinate
- angle: int
- distance: double
+ Measurement(Coordinate location, int angle, double distance): Measurement
Coordinate
- X: int
- Y: int
+ Coordinate(int X, int Y): Coordinate
DistanceSensor
- 
+ getDistance(): double
Mapper
- map: Map
- robot: Robot
- measurements: Measurement[]
+ takeMeasurement(): void
+ getMeasurements(): Measurements[]
Robot
- currentLocation: Coordinate
- mapper: Map
- gyroSensor: GyroSensor
- distanceSensor: DistanceSensor
- motorLeft: MotorController
- motorRight: MotorController
+ Robot(): Robot
+ getCurrentLocation(): Coordinate
+ takeMeasurement(): Measurement
+ Turn(double degrees, int direction): void
+ Drive(double distance, int direction): void
Map
- bottomLeft: Coordinate
- topRight: Coordinate
+ Map(Coordinate bottomLeft, Coordinate bottomRight): Map
\ No newline at end of file