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.
Diff: thruster.h
- Revision:
- 4:d32183587460
- Parent:
- 1:94191f7e9b27
--- 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; };