Skip to content

Commit

Permalink
fix(bluetooth-classic): increase change detection speed
Browse files Browse the repository at this point in the history
This is a return to the old Kalman filtering values, pre-tuning in a
previous update. It should help with the long times until a BT Classic
entity changes its state reported by some users.

Closes #775
  • Loading branch information
mKeRix committed Mar 20, 2022
1 parent 23755a4 commit 6325937
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -37,8 +37,9 @@ const execPromise = util.promisify(exec);

@Injectable()
export class BluetoothClassicService
extends KalmanFilterable(Object, 0.01, 0.7)
implements OnModuleInit, OnApplicationBootstrap {
extends KalmanFilterable(Object, 1.4, 1)
implements OnModuleInit, OnApplicationBootstrap
{
private readonly config: BluetoothClassicConfig;
private rotationOffset = 0;
private inquiriesSwitch: Switch;
Expand Down

0 comments on commit 6325937

Please sign in to comment.