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