Browse Source

PAW3902: fix mode change shutter thresholds

According to PixArt datasheet
sbg
joevn 5 years ago committed by Daniel Agar
parent
commit
04ba05f5a0
  1. 4
      src/drivers/optical_flow/paw3902/PAW3902.cpp

4
src/drivers/optical_flow/paw3902/PAW3902.cpp

@ -603,7 +603,7 @@ PAW3902::Run() @@ -603,7 +603,7 @@ PAW3902::Run()
// LowLight -> SuperLowLight
changeMode(Mode::SuperLowLight);
} else if ((shutter >= 0x0BB8)) { // AND valid for 10 consecutive frames?
} else if ((shutter < 0x0BB8)) { // AND valid for 10 consecutive frames?
// LowLight -> Bright
changeMode(Mode::Bright);
}
@ -613,7 +613,7 @@ PAW3902::Run() @@ -613,7 +613,7 @@ PAW3902::Run()
case Mode::SuperLowLight:
// SuperLowLight -> LowLight
if ((shutter >= 0x03E8)) { // AND valid for 10 consecutive frames?
if ((shutter < 0x03E8)) { // AND valid for 10 consecutive frames?
changeMode(Mode::LowLight);
}

Loading…
Cancel
Save