view include/Kalman.h @ 150:ebbfb154351a ClockSync

Now leveraging BBB's lock between xenomai clock and audio clock for ultra-accurate, low-latency clocking. CAVEAT: fractions of samples drifts will occurr every time the clock is changed
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 22 Sep 2015 04:09:13 +0100
parents 134bff10e561
children
line wrap: on
line source
/*
 * Kalman.h
 *
 *  Created on: 20 Sep 2015
 *      Author: giulio
 */

#ifndef KALMAN_H_
#define KALMAN_H_

class KalmanOne{
public:
	double A;
	double H;
	double Q;
	double R;
	double x;
	double P;
	void init(double newQ, double newR, double newX);
	double process(double z);
};



#endif /* KALMAN_H_ */