-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMEAM5100_Final.ino
54 lines (39 loc) · 929 Bytes
/
MEAM5100_Final.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* main loop for this project
*
*/
/*
#include <WiFi.h>
void setup() {
Serial.begin(115200); // Start the Serial communication
delay(10);
// Print the MAC address
Serial.print("ESP32 MAC Address: ");
Serial.println(WiFi.macAddress());
}
void loop() {
// No need to put anything in the loop for this example
}
*/
#include "actuators/motor.hpp"
MecanumController mecanumController(38, 4, 11,
39, 5, 12,
40, 6, 13,
41, 7, 14);
void setup()
{
}
void loop(){
mecanumController.turn(1,100);
delay(1000);/*
mecanumController.move_backward(70);
delay(1000);
mecanumController.move_left(70);
delay(1000);
mecanumController.move_right(70);
delay(1000);
mecanumController.turn(0,70);
delay(1000);
mecanumController.turn(1,70);
delay(1000);*/
}