From: Jiri Vlasak Date: Mon, 3 Feb 2020 10:34:37 +0000 (+0100) Subject: Return 5m long 10 possible goals by default X-Git-Tag: v0.3.0~1^2~9 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/psp.git/commitdiff_plain/dbf2f1fde8312c5eb80a35489ced75213026b0fe Return 5m long 10 possible goals by default --- diff --git a/api/psp.h b/api/psp.h index 94bebf8..7ee2bb8 100644 --- a/api/psp.h +++ b/api/psp.h @@ -80,7 +80,7 @@ class PSPlanner { ); std::vector possible_goals() { - return this->possible_goals(10, 1); + return this->possible_goals(10, 0.5); } // find entry diff --git a/src/psp.cc b/src/psp.cc index 44c4c88..e39c2c3 100644 --- a/src/psp.cc +++ b/src/psp.cc @@ -255,6 +255,10 @@ std::vector PSPlanner::possible_goals( ) { std::vector pi; + if (this->cc().sp() > 0) + this->cc().sp(1); + else + this->cc().sp(-1); this->cc().sp(this->cc().sp() * dist); this->cc().st(this->cc().st() * 1); BicycleCar orig_cc(this->cc());