]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/commitdiff
Fix compile errors
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 19 Jan 2022 10:07:10 +0000 (11:07 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 19 Jan 2022 10:07:10 +0000 (11:07 +0100)
src/entry_positions_range.cc
src/pslot.cc

index 6bc82a3b75e40eb2a8fe59d10eefea4de607eaa8..e0e18d29740ef8c9a58f713177776942294d9259 100644 (file)
@@ -49,7 +49,6 @@ int main(int argc, char** argv)
                s.set_parking_speed(PARKING_SPEED);
                s.set_max_cusp(max_cusp);
                s.set_delta_angle_to_slot(DELTA_ANGLE_TO_SLOT);
-               auto pr = s.fe(c);
                double d = 0;
                double fd = 0;
                unsigned int cd = 0;
index 85581fdcd923bc13abc3739dc63a6a805c2edd3c..1a0f32385f2c012076851c36a3eb35fe7c223f81 100644 (file)
 namespace bcar {
 
 ParkingSlot::ParkingSlot(Point p, double h, double W, double L) :
-               border_({p,
+               border_{p,
                        Point(p.x() + W * cos(h - M_PI / 2.0),
                                p.y() + W * sin(h - M_PI / 2.0)),
                        Point(p.x() + W * cos(h - M_PI / 2.0) + L * cos(h),
                                p.y() + W * sin(h - M_PI / 2.0) + L * sin(h)),
-                       Point(p.x() + L * cos(h), p.y() + L * sin(h))}),
+                       Point(p.x() + L * cos(h), p.y() + L * sin(h))},
                entry_(border_[0], border_[3]),
                rear_(border_[0], border_[1]),
                curb_(border_[1], border_[2]),
@@ -26,8 +26,8 @@ ParkingSlot::ParkingSlot(Point p, double h, double W, double L) :
 
 ParkingSlot::ParkingSlot(double lrx, double lry, double rrx, double rry,
                double rfx, double rfy, double lfx, double lfy) :
-                       border_({Point(lrx, lry), Point(rrx, rry),
-                               Point(rfx, rfy), Point(lfx, lfy)}),
+                       border_{Point(lrx, lry), Point(rrx, rry),
+                               Point(rfx, rfy), Point(lfx, lfy)},
                        entry_(border_[0], border_[3]),
                        rear_(border_[0], border_[1]),
                        curb_(border_[1], border_[2]),