Skip to content

Commit

Permalink
feat(als): add flag indicating LED interference
Browse files Browse the repository at this point in the history
on Diamond EVT, ALS sensor is located on the front unit, close
to the front LEDs. That ones are interfering with the ALS readings.
Make sure to mark the ALS reading as invalid if the front LEDs
are on.
  • Loading branch information
fouge committed Jan 14, 2025
1 parent 7efef8a commit 10f65cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messages/main.proto
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ message AmbientLight
ALS_OK = 0;
ALS_ERR_RANGE = 1; // likely too much light in the sensor, consider the
// value as ~500
ALS_ERR_LEDS_INTERFERENCE = 2; // front LEDs are turned on, interfering
// with ALS so value cannot be trusted
};
uint32 ambient_light_lux = 1;
Flags flag = 2;
Expand Down

0 comments on commit 10f65cd

Please sign in to comment.