Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Diff: Estimation/Mapping/Mapping.cpp
- Revision:
- 19:ce7fdade3534
- Parent:
- 0:a6a169de725f
--- a/Estimation/Mapping/Mapping.cpp Thu Nov 29 17:21:37 2018 +0000 +++ b/Estimation/Mapping/Mapping.cpp Thu Nov 29 17:26:39 2018 +0000 @@ -50,7 +50,7 @@ lonToX = sw.distanceTo(se) / dlon; latToY = sw.distanceTo(nw) / dlat; - fprintf(stdout, "lonToX=%.10f\nlatToY=%.10f\n", lonToX, latToY); + //fprintf(stdout, "lonToX=%.10f\nlatToY=%.10f\n", lonToX, latToY); return; } @@ -73,7 +73,7 @@ void Mapping::cartToGeo(CartPosition cart, GeoPosition *pos) { - cartToGeo(cart._x, cart._y, pos); + cartToGeo(cart.x, cart.y, pos); return; }