Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: buttoncontrol includeair includeair Oudverslag
Diff: controlandadjust.cpp
- Revision:
- 11:ef8d28e010a2
- Parent:
- 10:37bdb3e5f03a
- Child:
- 12:9cec66b450e0
diff -r 37bdb3e5f03a -r ef8d28e010a2 controlandadjust.cpp
--- a/controlandadjust.cpp Thu Oct 08 14:19:50 2015 +0000
+++ b/controlandadjust.cpp Fri Oct 09 13:05:02 2015 +0000
@@ -17,10 +17,7 @@
-controlandadjust::controlandadjust(float safety_cutoff)
-{
- maxvaluepwm=safety_cutoff;
-}
+controlandadjust::controlandadjust(void){}
void controlandadjust::verwerksignaal(float signaal1,float signaal2)
{
@@ -109,4 +106,6 @@
{
motor1_speed.write(0);
motor2_speed.write(0);
-}
\ No newline at end of file
+}
+void controlandadjust::cutoff(float maxvalue)
+{float maxvaluepwm=maxvalue;}
\ No newline at end of file