Library that will allow you to control movement, buzzer and sonar sensor
Diff: Movement.h
- Revision:
- 0:ac150fd4158e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Movement.h Thu Mar 24 23:32:08 2022 +0000 @@ -0,0 +1,37 @@ +//#ifndef HEADER_AND_CPP_FILES_MOVEMENT_H +//#define HEADER_AND_CPP_FILES_MOVEMENT_H +#pragma once +#include "mbed.h" + +void Velocity(float v); +void Steering(float s); +void setUpMovement(const float &forwardSpeedInput, const float &reverseSpeedInput, const float &turnAngleInput); + + +void moveForward(); +void moveReverse(); +void move(const float &speed); + + +void steerLeft(); +void steerRight(); +void steer(const float &angle); + +/* +void turnLeft(); +void turnRight(); +void turn(const float &angle); +*/ + +//set accelerate, de-accelerate and turn angle value +void setForwardSpeed(const float &speed); +void setReverseSpeed(const float &speed); +void setTurnAngle(const float &angle); + + +void stop(); +void resetSteering(); +void resetVelocity(); +void resetAll(); + +//#endif //HEADER_AND_CPP_FILES_MOVEMENT_H \ No newline at end of file