Compare commits
143 Commits
f1f98189ae
...
5ab59b9d1b
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ab59b9d1b | |||
| 1f5e57112b | |||
|
|
608b40fa86 | ||
| 2c498a6dd9 | |||
| efa9ba8522 | |||
| c7bce31f34 | |||
| 9ad1ec24d0 | |||
| 6a443e111c | |||
| f1a550e7f3 | |||
|
|
78d0e179df | ||
|
|
0d115ee65a | ||
|
|
6dfbdc7316 | ||
|
|
15ac8a399b | ||
|
|
f9103758e2 | ||
|
|
ac376338de | ||
|
|
05cdf0328d | ||
|
|
7d2ffeb11c | ||
|
|
f33b105f50 | ||
|
|
28d3a98bea | ||
|
|
c42c253362 | ||
|
|
eca5e698cd | ||
|
|
8369450d22 | ||
|
|
c1b9a8c5e6 | ||
|
|
b628a0c718 | ||
|
|
122ac3360b | ||
|
|
cd9b4a1e9e | ||
|
|
4eb65f1312 | ||
|
|
383f0c1793 | ||
|
|
7b21331afb | ||
|
|
a1d89ff1f7 | ||
|
|
d3e12c16f2 | ||
|
|
9e85419e35 | ||
|
|
a7f6aecb5a | ||
|
|
6d37d8cec9 | ||
|
|
dcccef221b | ||
|
|
0a75c7f4fd | ||
|
|
4044b86a9d | ||
|
|
062aafd19a | ||
|
|
0f844f5fad | ||
|
|
f28aea5441 | ||
|
|
5059dfbe6e | ||
|
|
86ff02a110 | ||
|
|
923cb317af | ||
|
|
6551c653c3 | ||
|
|
b10929619d | ||
|
|
87744740d4 | ||
|
|
458f256c47 | ||
|
|
d88d3a879d | ||
|
|
2428583110 | ||
|
|
30496197ec | ||
|
|
8a709e0fd2 | ||
|
|
8dab67f620 | ||
|
|
d96cf9fdb2 | ||
|
|
dd23355554 | ||
|
|
c5dc3b6bf5 | ||
|
|
1677e64d19 | ||
|
|
a017c4de18 | ||
|
|
78aed40a9b | ||
|
|
3e5da90f47 | ||
|
|
8ea28beb42 | ||
|
|
d337fba6fd | ||
|
|
b991153b8b | ||
|
|
ed128a443a | ||
|
|
5a9d92002d | ||
|
|
623d3d6156 | ||
|
|
85a19faeb4 | ||
|
|
0307a62ed8 | ||
|
|
0366989199 | ||
|
|
b56a010725 | ||
|
|
f479cfc8fa | ||
|
|
dfb5a5af40 | ||
|
|
40d542fdc7 | ||
|
|
ac2785a440 | ||
|
|
b1c324f36c | ||
|
|
425cd8d6f9 | ||
|
|
246a2b9a3a | ||
|
|
b2591ca5cc | ||
|
|
caa53749f3 | ||
|
|
b9d668926c | ||
|
|
bed6d95916 | ||
|
|
e178306128 | ||
|
|
941cdd17db | ||
|
|
3538b7dcc0 | ||
|
|
49f5011823 | ||
|
|
c2aff1ee9a | ||
|
|
502a68eaff | ||
|
|
958cbbd2ed | ||
|
|
b28a6bd3d9 | ||
|
|
a8983f5a7a | ||
|
|
e562e2433c | ||
|
|
97afb3b730 | ||
|
|
dc165edf79 | ||
|
|
735ad3b6dc | ||
|
|
338936ace5 | ||
|
|
02920a56e2 | ||
|
|
b9e28dc421 | ||
|
|
f99d4fb1b7 | ||
|
|
dd2cbf1646 | ||
|
|
8bfa6dcea9 | ||
|
|
d6203e1dd1 | ||
|
|
478d028c09 | ||
|
|
49920220c3 | ||
|
|
cceba4bbcf | ||
|
|
2f7bc564a8 | ||
|
|
1429f0a9d6 | ||
|
|
e532f31236 | ||
|
|
ae6f9fa395 | ||
|
|
9b44918eaf | ||
|
|
b34c536c68 | ||
|
|
e975f219f4 | ||
|
|
17fa48a266 | ||
|
|
0d022c26ef | ||
|
|
87fbddb2b5 | ||
|
|
7e80a36027 | ||
|
|
1d2da54a17 | ||
|
|
0f0fcfdfbf | ||
|
|
cdd1a7a53f | ||
|
|
6e5b923f97 | ||
|
|
71ca0eb1f8 | ||
|
|
e9a29f253c | ||
|
|
2e4e4c4693 | ||
|
|
aebe4c0f8e | ||
|
|
d3cb4c1e47 | ||
|
|
fbeed8e809 | ||
|
|
394dc220ca | ||
|
|
355dd5c1c5 | ||
|
|
becb194d64 | ||
|
|
9b53eee21e | ||
|
|
f35d60369d | ||
|
|
a48ae12fc2 | ||
|
|
d8fc41f1c4 | ||
|
|
673fd3d258 | ||
|
|
9919aa6578 | ||
|
|
6f12854d4f | ||
|
|
97ad80e805 | ||
|
|
8e6f1b6518 | ||
|
|
224dd52363 | ||
|
|
7275471e4f | ||
|
|
ad6c93258b | ||
|
|
b16a561587 | ||
|
|
2fb932c4cb | ||
|
|
4de97dace7 | ||
|
|
8b009003c4 |
8
DoxyGen.meta
Normal file
8
DoxyGen.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1989654e8505b074d9a0280de8649b7d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
DoxyGen/Doxyfile.meta
Normal file
7
DoxyGen/Doxyfile.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db5f4144ac032d649994939f1d833737
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
DoxyGen/DoxygenLayout.xml.meta
Normal file
7
DoxyGen/DoxygenLayout.xml.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd31613f75db97f4ca4d408bfce69746
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
7
DoxyGen/custom_doxygen.css.meta
Normal file
7
DoxyGen/custom_doxygen.css.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 186de70a0b3d098409ce1a5ec887b1ae
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
31
Examples/BB2B/Program.cs
Normal file
31
Examples/BB2B/Program.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Threading;
|
||||
using RoboidControl;
|
||||
|
||||
class BB2B {
|
||||
static void Main() {
|
||||
// The robot's propulsion is a differential drive
|
||||
DifferentialDrive bb2b = new();
|
||||
// It has a touch sensor at the front left of the roboid
|
||||
TouchSensor touchLeft = new(bb2b);
|
||||
// and other one on the right
|
||||
TouchSensor touchRight = new(bb2b);
|
||||
|
||||
// Do forever:
|
||||
while (true) {
|
||||
// The left wheel turns forward when nothing is touched on the right side
|
||||
// and turn backward when the roboid hits something on the right
|
||||
float leftWheelSpeed = touchRight.touchedSomething ? -600.0f : 600.0f;
|
||||
// The right wheel does the same, but instead is controlled by
|
||||
// touches on the left side
|
||||
float rightWheelSpeed = touchLeft.touchedSomething ? -600.0f : 600.0f;
|
||||
// When both sides are touching something, both wheels will turn backward
|
||||
// and the roboid will move backwards
|
||||
bb2b.SetWheelVelocity(leftWheelSpeed, rightWheelSpeed);
|
||||
|
||||
// Update the roboid state
|
||||
bb2b.Update(true);
|
||||
// and sleep for 100ms
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user