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-rtos mbed ssWi
car.hpp
00001 #ifndef __CAR_HPP__ 00002 #define __CAR_HPP__ 00003 00004 00005 #include "servo.hpp" 00006 00007 00008 #define CAMERA_ANGLE_STEP 0.1 00009 00010 00011 class Car 00012 { 00013 //camera 00014 int angleX; 00015 int angleY; 00016 Servo cameraX; 00017 Servo cameraY; 00018 00019 //motor 00020 Servo steering; 00021 Servo motor; 00022 00023 public: 00024 00025 Car (PinName pinCamX, PinName pinCamY, PinName pinSteering, PinName pinMotor); 00026 00027 void setSpeed (float s); 00028 void setSteering (float angle); 00029 void setCamera (float x, float y); 00030 00031 }; 00032 00033 00034 #endif //__CAR_HPP__
Generated on Tue Jul 19 2022 13:36:11 by
1.7.2