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: Motordriver mbed-rtos mbed
Fork of MultiModalRobotSM by
MultiModalRobot.h
00001 #ifndef MULTIMODALROBOT_H 00002 #define MULTIMODALROBOT_H 00003 00004 #include "motordriver.h" 00005 00006 class MultiModalRobot { 00007 private: 00008 Motor& leftWheel; 00009 Motor& rightWheel; 00010 int leftDir; //0 if stopped -1 if backwards +1 if forwards 00011 int rightDir; 00012 public: 00013 MultiModalRobot(Motor& left, Motor& right); 00014 void driveWheels(float leftSpeed, float rightSpeed); 00015 void stop(float dutyCycle); 00016 00017 }; 00018 00019 #endif
Generated on Sun Jul 24 2022 08:59:13 by
1.7.2
