Skip to content

Commit

Permalink
now publishing vx in debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fetty31 committed Jan 16, 2024
1 parent a59ecf4 commit e6d20c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 57 deletions.
57 changes: 0 additions & 57 deletions params/dyn_autox_testing.yaml

This file was deleted.

1 change: 1 addition & 0 deletions src/mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ void MPC::get_debug_solution(as_msgs::MPCdebug *msg){
msg->k = this->forces.params.all_parameters[24 + this->latency * this->Npar];

double vx = this->forces.params.all_parameters[23 + this->latency * this->Npar];
msg->vx = vx;

msg->alpha_f = atan( (msg->vy + this->Lf * msg->r)/vx ) - msg->delta;
msg->alpha_r = atan( (msg->vy - this->Lr * msg->r)/vx );
Expand Down

0 comments on commit e6d20c2

Please sign in to comment.