mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
Update power measurement examples to the state in which they were used as test cases in thesis
21 lines
506 B
C++
21 lines
506 B
C++
#include "Dezibot.h"
|
|
|
|
Dezibot dezibot;
|
|
|
|
void setup() {
|
|
dezibot.motion.begin();
|
|
}
|
|
|
|
void loop() {
|
|
// Alternatingly turn on the Motors. Use the commands provided by motion for this, using the provided
|
|
// functions (with their duty cycle), as it represents typical usage
|
|
dezibot.motion.rotateClockwise();
|
|
delay(20000);
|
|
dezibot.motion.rotateAntiClockwise();
|
|
delay(20000);
|
|
// Turn on both motors at the same time
|
|
dezibot.motion.move();
|
|
delay(20000);
|
|
dezibot.motion.stop();
|
|
delay(20000);
|
|
} |