fix
This commit is contained in:
@@ -295,6 +295,9 @@ void MpcPlanner::setupProblem() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GimbalState MpcPlanner::plan(const TargetInfo& target, double dt) {
|
GimbalState MpcPlanner::plan(const TargetInfo& target, double dt) {
|
||||||
|
// Setup problem constraints and weights
|
||||||
|
setupProblem();
|
||||||
|
|
||||||
int N = N_;
|
int N = N_;
|
||||||
double total_time = params_.sample_total_time;
|
double total_time = params_.sample_total_time;
|
||||||
double time_step = total_time / N;
|
double time_step = total_time / N;
|
||||||
|
|||||||
Reference in New Issue
Block a user