TR-mbed 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ChassisKalman Class Reference

#include <ChassisKalman.h>

Inheritance diagram for ChassisKalman:
TinyEKF

Public Member Functions

 ChassisKalman ()
 
void setDt (double dt)
 
- Public Member Functions inherited from TinyEKF
double getX (int i)
 
void setX (int i, double value)
 
bool step (double *z)
 

Public Attributes

double dt
 

Protected Member Functions

double pythag (double dx, double dy)
 
double degreesToRadians (double degrees)
 
void model (double fx[Nsta], double F[Nsta][Nsta], double hx[Mobs], double H[Mobs][Nsta]) override
 
- Protected Member Functions inherited from TinyEKF
 TinyEKF ()
 
 ~TinyEKF ()
 
void setP (int i, int j, double value)
 
void setQ (int i, int j, double value)
 
void setR (int i, int j, double value)
 

Additional Inherited Members

- Protected Attributes inherited from TinyEKF
double * x
 

Detailed Description

Kalman filter for Chassis localization.

States are:

Measurements are:

Constructor & Destructor Documentation

◆ ChassisKalman()

ChassisKalman::ChassisKalman ( )

Member Function Documentation

◆ degreesToRadians()

double ChassisKalman::degreesToRadians ( double  degrees)
protected

◆ model()

void ChassisKalman::model ( double  fx[Nsta],
double  F[Nsta][Nsta],
double  hx[Mobs],
double  H[Mobs][Nsta] 
)
overrideprotectedvirtual

Implement this function for your EKF model.

Parameters
fxgets output of state-transition function f(x0 .. n-1)
Fgets n × n Jacobian of f(x)
hxgets output of observation function h(x0 .. n-1)
Hgets m × n Jacobian of h(x)

Implements TinyEKF.

◆ pythag()

double ChassisKalman::pythag ( double  dx,
double  dy 
)
protected

◆ setDt()

void ChassisKalman::setDt ( double  dt)

Sets the dt (delta time) used by the kalman filter to estimate how far the Chassis has traveled in a certain amount of time at a certain speed

Parameters
dtThe delta time in milliseconds

Member Data Documentation

◆ dt

double ChassisKalman::dt

The documentation for this class was generated from the following files: