]> rtime.felk.cvut.cz Git - hubacji1/psp.git/commitdiff
Merge branch 'hotfix/0.4.1'
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 9 Nov 2020 11:31:08 +0000 (12:31 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 9 Nov 2020 11:31:08 +0000 (12:31 +0100)
CHANGELOG.md
api/psp.h
src/psp.cc

index f188e2f7339585dfe8ecb3c6b98e524eba24466f..3aa88e685e51ef5c4817a133be27cf930197f956 100644 (file)
@@ -9,6 +9,13 @@ The format is based on [Keep a Changelog][] and this project adheres to
 
 ## Unreleased
 
+## 0.4.1 - 2020-11-09
+### Changed
+- Make backward parking the default.
+
+### Fixed
+- Add the goal to the last maneuver method.
+
 ## 0.4.0 - 2020-07-23
 ### Added
 - Workaround to not working `fe()` for perpendicular parking slot.
index 70bbf79c42ee500131942f8e196f1e00ec6ad1e4..b390a76f3d4a79ba27dba4dc29d5464e0320e28f 100644 (file)
--- a/api/psp.h
+++ b/api/psp.h
@@ -7,7 +7,7 @@
 #include "bcar.h"
 #include "pslot.h"
 
-#define FORWARD_PARKING 1
+#define FORWARD_PARKING 0
 
 /*! \brief Parking Slot Planner basic class.
 
index 583643ac0d1ec5008f6b8f008a464fb9c740e05f..9d8ce2158300ca35f362e2b0f0a61a4dfe7a1492 100644 (file)
@@ -142,6 +142,7 @@ std::vector<BicycleCar> PSPlanner::last_maneuver()
                 // zig-zag out from the slot
                 this->cc() = BicycleCar(this->gc());
                 this->cc().sp(0.1);
+                lm.push_back(BicycleCar(this->cc()));
                 while (!this->left()) {
                         while (!this->collide() && !this->left()) {
                                 this->cc().next();