added periodic resending, free memory readout, rgb callibration.

This commit is contained in:
2019-01-07 18:59:05 +01:00
parent 775ff9313b
commit d2bb858317
8 changed files with 129 additions and 29 deletions

View File

@ -17,9 +17,10 @@ private:
static constexpr uint16_t SYNC_TIME = 800;
static constexpr uint16_t LARGE_TIME = 2000;
static constexpr uint16_t SMALL_TIME = 500;
static constexpr uint8_t SYNC_TIME_TOLERANCE = SYNC_TIME*0.15;
static constexpr uint8_t LARGE_TIME_TOLERANCE = LARGE_TIME*0.15;
static constexpr uint8_t SMALL_TIME_TOLERANCE = SMALL_TIME*0.15;
static constexpr uint8_t SYNC_TIME_TOLERANCE = SYNC_TIME*0.20;
static constexpr uint16_t LARGE_TIME_TOLERANCE = LARGE_TIME*0.30;
static constexpr uint8_t SMALL_TIME_TOLERANCE = SMALL_TIME*0.30;
static constexpr uint8_t DISCARD_TIME = SMALL_TIME*0.3;
static constexpr uint16_t TICKS_PER_US = (F_CPU) / (1000000*CLOCK_DEVIDER) ;
static constexpr uint8_t signature = 0xA5;