![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
nowe + funkcje na lux
Dependencies: Servo_fullrange mbed
Fork of Kola_Servo_nowe by
Engine.h
- Committer:
- yruiewyrui3
- Date:
- 2016-06-15
- Revision:
- 2:325a730cd438
- Parent:
- 0:2e73d45d090e
File content as of revision 2:325a730cd438:
#ifndef ENGINE_H #define ENGINE_H #include "mbed.h" class Engine{ private: PwmOut _pwm; DigitalOut _fwd; DigitalOut _rev; float getPwm(float val); public: Engine(PinName pwm, PinName fwd, PinName rev): _pwm(pwm), _fwd(fwd), _rev(rev){} void move(int speed); // silniki pracuja z okreslona predkoscia (speed ma zakres od -1 do 1) void stop(); //hard stop }; #endif