Add 2nd robot ball color rects
Also, switch logger hostname to pi6 so we can actually get the team
number on it.
Signed-off-by: Milind Upadhyay <milind.upadhyay@gmail.com>
Change-Id: I90f1329ff1a5922559b2b37c9778eec0dcdd59be
diff --git a/y2022/constants.h b/y2022/constants.h
index f410014..297f814 100644
--- a/y2022/constants.h
+++ b/y2022/constants.h
@@ -20,6 +20,10 @@
namespace y2022 {
namespace constants {
+constexpr uint16_t kCompTeamNumber = 971;
+constexpr uint16_t kPracticeTeamNumber = 9971;
+constexpr uint16_t kCodingRobotTeamNumber = 7971;
+
struct Values {
static const int kZeroingSampleSize = 200;
@@ -233,6 +237,15 @@
InterpolationTable<ShotParams> shot_interpolation_table;
InterpolationTable<ShotVelocityParams> shot_velocity_interpolation_table;
+
+ struct BallColorParams {
+ // Rects stored as {x, y, width, height}
+ std::array<int, 4> reference_red;
+ std::array<int, 4> reference_blue;
+ std::array<int, 4> ball_location;
+ };
+
+ BallColorParams ball_color;
};
// Creates and returns a Values instance for the constants.