Make it so CameraGeometry::set works
It was a second implementation of get() instead.
Change-Id: If4f07838d951850f487fad1809b22da62ce13f50
diff --git a/y2019/vision/constants.h b/y2019/vision/constants.h
index 3f07f87..1e0380b 100644
--- a/y2019/vision/constants.h
+++ b/y2019/vision/constants.h
@@ -12,14 +12,14 @@
struct CameraGeometry {
static constexpr size_t kNumParams = 4;
// In Meters from floor under imu center.
- std::array<double, 3> location{{0, 0, 0}};
+ ::std::array<double, 3> location{{0.0, 0.0, 0.0}};
double heading = 0.0;
void set(double *data) {
- location[0] = data[0];
- location[1] = data[1];
- location[2] = data[2];
- heading = data[3];
+ data[0] = location[0];
+ data[1] = location[1];
+ data[2] = location[2];
+ data[3] = heading;
}
static CameraGeometry get(const double *data) {
CameraGeometry out;