Skip to content

Add CTP7 RX optical power measurement

Laurent Petre requested to merge feature/optical-power-mesurement into main

Description

This MR adds the input optical power readings on the CTP7.

Instead of relying on external tools that may or may not be documented and magic numbers, a simple I2C library is implemented. All numbers, I2C address,... are documented to the best of our knowledge and based on standard specifications are datasheets.

At the moment, the reading can be done only through gempy, but it provides the foundations for a complete monitoring.

Related Issue

Fixes #79 (closed).

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports