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.
Dependencies: mbed
right_motor.h
00001 #ifndef RIGHT_MOTOR_H 00002 #define RIGHT_MOTOR_H 00003 #include "mbed.h" 00004 class RightMotor { 00005 public: 00006 RightMotor(); 00007 00008 // Define speed as float value between -1.0 and 1.0 00009 void speed(float speed); 00010 00011 void stop(void); 00012 00013 // Override operator for setting motor speed 00014 void operator = (float speed) { 00015 RightMotor::speed(speed); 00016 } 00017 00018 private: 00019 //float curr_speed; 00020 }; 00021 00022 #endif
Generated on Thu Jul 14 2022 05:30:38 by
