Skip to content

About calibration points

Piotr Machowski edited this page Mar 12, 2023 · 3 revisions

Mechanism

Calibration points are essential for this card to work with vacuums that use coordinates systems for cleaning. They allow to map position on the map image (in pixels) to coordinates used by the vacuum.

Such mapping is created using:

Formatting for integrations

Calibration points are read from the integration if they are formatted in the following way:

[
  {
    "vacuum": {
      "x": 25500,
      "y": 25500
    },
    "map": {
      "x": 224,
      "y": 360
    }
  },
  {
    "vacuum": {
      "x": 26500,
      "y": 25500
    },
    "map": {
      "x": 264,
      "y": 360
    }
  },
  {
    "vacuum": {
      "x": 25500,
      "y": 26500
    },
    "map": {
      "x": 224,
      "y": 320
    }
  }
]
  • vacuum - represents a point in vacuum coordinates
  • map - represents a point on the map image (in pixels)

Requirements:

  • points have to be non-linear
  • for the best results 3 (4 if needed) corners of a rectangle should be used
  • points don't have to be within the map boundaries