aboutsummaryrefslogtreecommitdiffstats
path: root/dev/a2-carsoccer/car.cc
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-10-11 20:02:53 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-10-11 20:02:53 -0500
commitcd759e156556731471829afbfc75c12e97d4171a (patch)
tree6eee0c8c038f2d1f2086904e22e38fe95823f68a /dev/a2-carsoccer/car.cc
parentMerge branch 'support-code' of github.umn.edu:umn-csci-4611-f21/shared-upstream (diff)
parentPushed feedback file submission-p2 (diff)
downloadcsci4611-cd759e156556731471829afbfc75c12e97d4171a.tar
csci4611-cd759e156556731471829afbfc75c12e97d4171a.tar.gz
csci4611-cd759e156556731471829afbfc75c12e97d4171a.tar.bz2
csci4611-cd759e156556731471829afbfc75c12e97d4171a.tar.lz
csci4611-cd759e156556731471829afbfc75c12e97d4171a.tar.xz
csci4611-cd759e156556731471829afbfc75c12e97d4171a.tar.zst
csci4611-cd759e156556731471829afbfc75c12e97d4171a.zip
Merge branch 'master' of github.umn.edu:umn-csci-4611-f21/repo-strap012
Diffstat (limited to '')
-rw-r--r--dev/a2-carsoccer/car.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev/a2-carsoccer/car.cc b/dev/a2-carsoccer/car.cc
index 4b27cfe..ae1a857 100644
--- a/dev/a2-carsoccer/car.cc
+++ b/dev/a2-carsoccer/car.cc
@@ -8,6 +8,7 @@ Car::Car() : size_(3,2,4), collision_radius_(2.5) {
}
Car::~Car() {
+
}
@@ -41,6 +42,8 @@ float Car::speed() {
}
void Car::set_speed(float s) {
+ if (s > 50)
+ s = 50;
speed_ = s;
}