mirror of
https://github.com/esphome/esphome.git
synced 2025-01-09 14:21:46 +01:00
minor order swap
This commit is contained in:
parent
27c1bc63f9
commit
2cac54c433
2 changed files with 814 additions and 821 deletions
|
@ -16,24 +16,22 @@ static constexpr uint8_t NUM_USEFUL_CHANNELS = 13;
|
|||
static constexpr uint8_t CHANNEL_IDX[NUM_USEFUL_CHANNELS] = {
|
||||
AS7343_CHANNEL_405_F1, AS7343_CHANNEL_425_F2, AS7343_CHANNEL_450_FZ, AS7343_CHANNEL_475_F3, AS7343_CHANNEL_515_F4,
|
||||
AS7343_CHANNEL_555_FY, AS7343_CHANNEL_550_F5, AS7343_CHANNEL_600_FXL, AS7343_CHANNEL_640_F6, AS7343_CHANNEL_690_F7,
|
||||
AS7343_CHANNEL_745_F8, AS7343_CHANNEL_CLEAR, AS7343_CHANNEL_855_NIR};
|
||||
static constexpr float CHANNEL_SENS[NUM_USEFUL_CHANNELS] = {
|
||||
0.19402, 0.26647, 0.35741, 0.41753, 0.52235, 0.59633, 0.56242, 0.65645, 0.68882, 0.79980, 0.70423, 0.38516, 0.40366,
|
||||
};
|
||||
AS7343_CHANNEL_745_F8, AS7343_CHANNEL_855_NIR, AS7343_CHANNEL_CLEAR};
|
||||
static constexpr float CHANNEL_SENS[NUM_USEFUL_CHANNELS] = {0.19402, 0.26647, 0.35741, 0.41753, 0.52235,
|
||||
0.59633, 0.56242, 0.65645, 0.68882, 0.79980,
|
||||
0.70423, 0.40366, 0.38516};
|
||||
static constexpr float CHANNEL_NM[NUM_USEFUL_CHANNELS] = {405, 425, 450, 475, 515, 555, 550,
|
||||
600, 640, 690, 745, 718, 855};
|
||||
static constexpr float CHANNEL_NM_WIDTH[NUM_USEFUL_CHANNELS] = {30, 22, 55, 30, 40, 100, 35, 80, 50, 55, 60, 0, 54};
|
||||
600, 640, 690, 745, 855, 718};
|
||||
static constexpr float CHANNEL_NM_WIDTH[NUM_USEFUL_CHANNELS] = {30, 22, 55, 30, 40, 100, 35, 80, 50, 55, 60, 54, 0};
|
||||
|
||||
static constexpr float CHANNEL_IRRAD_PER_BASIC_COUNT[NUM_USEFUL_CHANNELS] = {
|
||||
767.5101757, 2512.765376, 2034.308898, 5730.41039, 1404.780643, 1177.586336, 2803.31385,
|
||||
923.8726968, 1322.666667, 811.8520699, 5106.962963, 4416.832833, 417.0131368,
|
||||
|
||||
};
|
||||
923.8726968, 1322.666667, 811.8520699, 5106.962963, 417.0131368, 4416.832833};
|
||||
|
||||
// E = h*c/lambda
|
||||
static constexpr float PHOTON_ENERGIES[NUM_USEFUL_CHANNELS] = {
|
||||
4.9048E-19f, 4.67399E-19f, 4.41432E-19f, 4.18199E-19f, 3.85718E-19f, 3.57918E-19f, 3.61172E-19f,
|
||||
3.31074E-19f, 3.10382E-19f, 2.87891E-19f, 2.66637E-19f, 2.76664E-19f, 2.32333E-19f};
|
||||
3.31074E-19f, 3.10382E-19f, 2.87891E-19f, 2.66637E-19f, 2.32333E-19f, 2.76664E-19f};
|
||||
|
||||
// constexpr std::array<float, NUM_USEFUL_CHANNELS> fill_photon_energy() {
|
||||
// std::array<float, NUM_USEFUL_CHANNELS> v{0};
|
||||
|
|
|
@ -5,9 +5,6 @@ namespace esphome {
|
|||
namespace as7343 {
|
||||
|
||||
const float CALIB[801][12] PROGMEM = {
|
||||
|
||||
|
||||
|
||||
{0.135114,-0.101727,0.057653,-0.032777,0.000594,-0.002664,0.000000,0.002006,-0.000366,0.000036,0.001244,-0.000378},
|
||||
{0.135793,-0.102238,0.057942,-0.032941,0.000597,-0.002677,0.000000,0.002016,-0.000368,0.000036,0.001251,-0.000380},
|
||||
{0.136476,-0.102752,0.058233,-0.033107,0.000600,-0.002691,0.000000,0.002027,-0.000370,0.000036,0.001257,-0.000381},
|
||||
|
@ -809,8 +806,6 @@ const float CALIB[801][12] PROGMEM = {
|
|||
{-0.010714,0.060794,-0.074934,0.049127,0.005303,-0.013036,0.000000,0.011565,-0.003677,0.001585,-0.011554,0.011404},
|
||||
{-0.010663,0.060506,-0.074578,0.048894,0.005277,-0.012971,0.000000,0.011507,-0.003659,0.001577,-0.011497,0.011347},
|
||||
{-0.010611,0.060211,-0.074215,0.048656,0.005251,-0.012906,0.000000,0.011450,-0.003640,0.001569,-0.011440,0.011290},
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace as7343
|
||||
|
|
Loading…
Reference in a new issue