Use correct angle tune range of +/-127 on PMW33XX (#17708)
...partially reverts 580bcff4f6
as the
datasheet doesn't claim that the angle tuning as limited to +/- 30
degrees.
This commit is contained in:
@ -166,7 +166,7 @@ bool pmw33xx_init(uint8_t sensor) {
|
||||
wait_ms(1);
|
||||
|
||||
pmw33xx_write(sensor, REG_Config2, 0x00);
|
||||
pmw33xx_write(sensor, REG_Angle_Tune, CONSTRAIN(ROTATIONAL_TRANSFORM_ANGLE, -30, 30));
|
||||
pmw33xx_write(sensor, REG_Angle_Tune, CONSTRAIN(ROTATIONAL_TRANSFORM_ANGLE, -127, 127));
|
||||
pmw33xx_write(sensor, REG_Lift_Config, PMW33XX_LIFTOFF_DISTANCE);
|
||||
|
||||
if (!pmw33xx_check_signature(sensor)) {
|
||||
|
Reference in New Issue
Block a user