Update C++ Simulation to match Java (#1026)

This commit is contained in:
Drew Williams
2023-12-16 13:41:27 -05:00
committed by GitHub
parent 47aea29b6b
commit cba4db0bce
42 changed files with 5123 additions and 15 deletions

View File

@@ -27,15 +27,15 @@ class PNPResult {
public:
// This could be wrapped in an std::optional, but chose to do it this way to
// mirror Java
bool isPresent;
bool isPresent{false};
frc::Transform3d best;
double bestReprojErr;
frc::Transform3d best{};
double bestReprojErr{0};
frc::Transform3d alt;
double altReprojErr;
frc::Transform3d alt{};
double altReprojErr{0};
double ambiguity;
double ambiguity{0};
bool operator==(const PNPResult& other) const;