Skip to content

Commit

Permalink
fix(bluetooth-low-energy): tuned filter parameters
Browse files Browse the repository at this point in the history
I obtained the new parameters by testing what works best for me locally
- they are way more aggressive than the ones before. Gives me better
results here though, open a ticket if you're running into issues with
them.
  • Loading branch information
mKeRix committed Jan 27, 2020
1 parent af9e639 commit cbea490
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -21,10 +21,8 @@ import { KalmanFilterable } from '../../util/filters';

export const NEW_DISTANCE_CHANNEL = 'bluetooth-low-energy.new-distance';

// filter params taken from: https://www.researchgate.net/publication/316501991_An_Improved_BLE_Indoor_Localization_with_Kalman-Based_Fusion_An_Experimental_Study
@Injectable()
export class BluetoothLowEnergyService
extends KalmanFilterable(Object, 1.4, 0.065)
@Injectable() // parameters determined experimentally
export class BluetoothLowEnergyService extends KalmanFilterable(Object, 0.8, 15)
implements OnModuleInit, OnApplicationBootstrap {
private readonly config: BluetoothLowEnergyConfig;

Expand Down

0 comments on commit cbea490

Please sign in to comment.