Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Calibration (v3)

defeirst edited this page Mar 12, 2021 · 5 revisions

Calibration Components

Moab calibration consists of 3 components:

  • Ball Hue: This is the color used by OpenCV to detect the ball. The default calibration is for the orange ball but the hue can change based on the lighting. If your Moab is having difficulty balancing the ball, try recalibrating to ensure proper ball detection.
  • Ball Position: Each Moab is slightly different due to tolerances in the parts so this calibration determines the X and Y offsets to the center of the ball on the plate.
  • Bias: These are the servo offsets that determine a level plate. Since there are three servos, there are three offset values.

Ball Hue and Position calibration

These calibration values are updated in one set.

  1. In the menu, navigate to and select CALIBRATION. Follow the prompts on the Moab screen. If calibration is successful, the Ball Hue and Position values will be displayed.

Bias (Plate level) calibration

  1. ssh into moab
ssh [email protected]
password: raspberry
  1. Navigate to and open the bot.json file using your favorite file editor.
cd moab
  1. Update the servo offsets with integer values.
    "servo_offsets": [
        0.0,
        0.0,
        0.0
    ]
  1. Save the file.

  2. Restart the docker container

down
up
  1. On Moab, navigate to and select CALIBRATION. Follow the prompts on the Moab screen.

  2. Navigate to and select CALIB INFO. The BIAS will be updated with the servo offset values.