Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Velocity setpoint jump in auto mode #8863

Closed
RomanBapst opened this issue Feb 9, 2018 · 2 comments
Closed

Velocity setpoint jump in auto mode #8863

RomanBapst opened this issue Feb 9, 2018 · 2 comments

Comments

@RomanBapst
Copy link
Contributor

RomanBapst commented Feb 9, 2018

@Stifael @MaEtUgR FYI
I found that the copter was a bit too aggressive during an auto mission although the max acceleration was relatively low (2 m/s/s).
Looking at the log I found that the velocity setpoint was not smooth (see the jumps).
Is there a setting I need to change or is this bug?

image

In manual mode I found it quite smooth as was the velocity setpoint in the log.

@Stifael
Copy link
Contributor

Stifael commented Feb 9, 2018

@RomanBapst there is no smoothing auto anymore. There is a velocity feedforward along track and position setpoint perpendicular to track, although the feedforward term is incorporated into the position setpoint due to legacy reason.
The logic is quite simple now. The vehicle always just follow the previous-current line, where it accelerates with MPC_ACC_HOR. The speed at the current waypoint is defined by the angle previous-current-next.
Can you send the entire log? Did you change MPC_ACC_HOR_MAX or MPC_ACC_HOR?

@RomanBapst
Copy link
Contributor Author

Fixed in #10746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants