ubah di nilai float
Fork of Motor by
Diff: Motor.cpp
- Revision:
- 3:143494304b66
- Parent:
- 2:11b3ef6b937d
diff -r 11b3ef6b937d -r 143494304b66 Motor.cpp --- a/Motor.cpp Sun Oct 29 06:04:49 2017 +0000 +++ b/Motor.cpp Thu Dec 21 11:12:28 2017 +0000 @@ -58,3 +58,9 @@ } } + +void Motor::Forcebrake(){ + _pwm = 1.0; + _fwd = 1; + _rev = 1; +}