Skip to content

experiment with low-pass filtering GPS float solution #45

@greymfm

Description

@greymfm

Currently, robot wobbles around tracked path if using GPS float solution. Try out if low-pass filtering GPS float solution would help.

Idea:
In function 'void computeRobotState()' (robot.cpp, line 931), try out a low-pass filter for GPS float solution (similar to what we do to low-pass filter the GPS yaw angle) :

small low-pass filtering:

if (maps.useGPSfloatForPosEstimation){ // allows planner to use float solution?
  if  (stateGroundSpeed > 0.03) {
    stateX = 0.99 * stateX + 0.01 * posE;  // this will only use GPS float positions as 'long-term' values
    stateY = 0.99 * stateY + 0.01 * posN;
  } else {
    stateX = posE;
    stateY = posN; 
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions