Salisbury-University / robot-weed-killer

Application to control our laser firing, weed killing robot
5 stars 1 forks source link

💡 Create and Implement Getters for Latitude and Longitude #59

Closed ZM009 closed 1 year ago

ZM009 commented 1 year ago

Start Date

04/05/2023

Implementation PR

No response

Reference Issues

57

Summary

Private getter functions would be created to utilize the latlng package's features in order to grab latitude and longitude measurements of custom points when the user holds an area of the map down.

Basic Example

Drawbacks

Coordinates could have a bigger window of error; could require further refinement of the getters.

ZM009 commented 1 year ago

can use flutter_map's functionality to grab the latitude and longitude of a gps. Very high level implementation depending on the purpose.

nickkrisulevicz commented 1 year ago

flutter_map works with the current GPS module just fine?

ZM009 commented 1 year ago

Yes. There's two libraries in flutter we can use to handle this: nmea, and latlong2. Latlong2 contains predefined types to contain the coordinates, while the nmea library is a parser that can be used to extract the given robot coordinates from the gps information sent by the arduino. These two can be tied in with flutter_map to reload the map's tiles and continually track the robot's location

ZM009 commented 1 year ago

After implementation there's a possibility of giving a robot a start and end point for path planning, but that may not be implemented due to time constraints.

ZM009 commented 1 year ago

No time left to learn nmea parsing