Pat McC / thruster
Revision:
4:d32183587460
Parent:
1:94191f7e9b27
diff -r 02a9d402226d -r d32183587460 thruster.h
--- a/thruster.h	Tue Nov 24 13:22:47 2020 +0000
+++ b/thruster.h	Fri Apr 09 11:38:56 2021 +0000
@@ -19,7 +19,8 @@
         void set_pw(double thruster_pw);
         double get_pw();
         double get_speed();
-        int set_max(double new_max);
+        void set_max(int new_max);
+        int get_max();
         uint32_t thruster_data();
         int set_speed(double pntr);
 
@@ -28,6 +29,6 @@
         PinName _pin;
         float _d;
         int _lock;
-        double _max;
+        int _max;
         double _base_pw, _period;
 };