Skip to content

Commit

Permalink
fix(bluetooth-low-energy): make distance measurements less twitchy
Browse files Browse the repository at this point in the history
These new Kalman parameters should deliver a more stable RSSI
estimation, which in turn leads to better distance and location
estimation.
  • Loading branch information
mKeRix committed Mar 18, 2021
1 parent 8e8b8e7 commit 12bcafb
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,9 +33,9 @@ import * as util from 'util';
export const NEW_DISTANCE_CHANNEL = 'bluetooth-low-energy.new-distance';
const APPLE_ADVERTISEMENT_ID = Buffer.from([0x4c, 0x00]);

@Injectable() // parameters determined experimentally
@Injectable()
export class BluetoothLowEnergyService
extends KalmanFilterable(Object, 0.8, 15)
extends KalmanFilterable(Object, 0.008, 4)
implements OnModuleInit, OnApplicationBootstrap {
private readonly config: BluetoothLowEnergyConfig;
private readonly logger: Logger;
Expand Down

0 comments on commit 12bcafb

Please sign in to comment.