PyCubed-Mini / flight_software

Flight Software for the PyCubed-Mini PocketQube platform
https://pocketqube.readthedocs.io/en/latest/
MIT License
3 stars 4 forks source link

Return flag when Lux value is new #375

Open tomyyyD opened 1 year ago

tomyyyD commented 1 year ago

Both versions of sun sensor have some integration time that needs to happen until a new lux value is returned. Currently the sun sensors just return the same value if called multiple times within its integration time. When the sensor is ready to return a new value, return the value with some flag that indicates it is a new value. In the OPT3001 sun sensor, the rdy property indicates that there is a new value to be returned.