Skip to content

Commit

Permalink
fixes + info
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintSampo committed Mar 19, 2024
1 parent 23e323a commit 1a9f5f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
,Arduino based robots use the library <a href="https://github.com/AlfredoSystems/PestoLink-Receive">PestoLink-Receive</a>.

<br><br> <u>Browser Support</u>
<br> PestoLink works with Google Chrome on Windows, Android, iOS, MacOS, Linux, and ChromeOS.
<br> PestoLink works with Google Chrome on Windows, Android, Mac, Linux, and ChromeOS.
<br>On iOS very few web browsers support webBluetooth. Google Chrome has worked for some people, but <a href="https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055">Bluefy</a> is the best option found so far.

<br><br> <u>What does "Override axes with WASD" do?</u>
<br> By default, keyboard data is sent seperatly from axis/button data. If you would like to drive your robot using your keyboard,
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ function renderLoop() {

if (localStorage.getItem(toggleKeyboardWASD.id) === 'true') {
for (let key of keyboardArray) {
if (key === 27 || key === 41) rawPacket[1] = clampUint8(rawPacket[1] - 128);
if (key === 29 || key === 37) rawPacket[1] = clampUint8(rawPacket[1] + 128);
if (key === 19 || key === 28) rawPacket[2] = clampUint8(rawPacket[2] - 128);
if (key === 22 || key === 30) rawPacket[2] = clampUint8(rawPacket[2] + 128);
if (key === 19 || key === 28) rawPacket[1] = clampUint8(rawPacket[2] - 128);
if (key === 22 || key === 30) rawPacket[1] = clampUint8(rawPacket[2] + 128);
if (key === 27 || key === 41) rawPacket[2] = clampUint8(rawPacket[1] - 128);
if (key === 29 || key === 37) rawPacket[2] = clampUint8(rawPacket[1] + 128);
if (key === 44 || key === 20) rawPacket[5] |= (1 << 0)
if (key === 42 || key === 32) rawPacket[5] |= (1 << 1)
if (key === 21 || key === 31) rawPacket[5] |= (1 << 2)
Expand Down

0 comments on commit 1a9f5f0

Please sign in to comment.