-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
leixiaowei
committed
Jul 14, 2021
1 parent
ba8f3ea
commit 0fe6ca5
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <MycobotBasic.h> | ||
#include <ParameterList.h> | ||
|
||
MycobotBasic myCobot; | ||
|
||
Encoders encoders; | ||
|
||
void setup() { | ||
// 打开Atom链接 | ||
myCobot.setup(); | ||
myCobot.powerOn(); | ||
Serial.begin(9600); | ||
} | ||
void loop() { | ||
encoders = myCobot.getEncoders(); | ||
for(auto encoder : encoders) { | ||
Serial.print(encoder); | ||
Serial.print(" ");; | ||
} | ||
Serial.println(); | ||
} |