CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 03:36:27 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=33843751305f1b1aef5c0491ef52c48061ac89fa2e4fdb57b974a58273253418a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22UkBz7PZPMMNIxSeydawJdqBuzW3BVO5u%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cb503449ffc1f7-BLR
miniskybot - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Mini-Skybot
- 'ossipee
- symbol motorR = 1 ; call pin for right motor
- symbol motorL = 2 ; call pin for left motor
- symbol motorRC = 145 ; stop motor
- symbol motorLC = 147 ; stop motor
- symbol trigger = 0 ; call pin that send pulse
- symbol echo = 4 ; call pin that gets pulse back
- symbol tm = w1 ;variable for microseconds read off of HCSR04
- symbol inches = w2; variable for converting microseconds to distance, about 15 us/in
- symbol dangerL = 7 ;arbitrary safe distance to obstacles-make it lower than you'd think
- symbol leftObstacle = w3; variable to store distance read when looking left
- symbol rightObstacle = w4; variable to store distance read when looking right
- servo motorR,motorRC ; set pins as servo outputs
- servo motorL,motorLC
- pause 3000 ; wait 3 seconds to start
- main:
- gosub myHCSR04
- if inches > dangerL then ; safe go forward
- gosub nodanger ; go forward
- else
- gosub whichway ; look how to go
- endif
- goto main
- myHCSR04:
- pulsout C.0,1; sends 20us pulse out to ping
- pulsin C.4,1,tm ; measures range in 10us steps
- inches = tm/15
- pause 100
- return
- nodanger:
- servopos motorR,225
- servopos motorL,75
- return
- whichway:
- gosub totalhalt ; stop everything for crash
- gosub turnleft ; turn left
- pause 780; for 3/4 second or 90 degrees left depending on your servos
- gosub totalhalt; stop
- gosub myHCSR04; to take reading
- leftObstacle = inches;
- gosub turnright ; turn right
- pause 1500 ; for 1.5 seconds or 180 degrees right depending on your servos
- gosub totalhalt; stop
- gosub myHCSR04; to take reading
- rightObstacle = inches
- if leftObstacle > rightObstacle then; if the left obstacle is more distant than the right
- gosub turnleft; go back around to the left
- pause 1560; for 1.5 seconds or 180 degrees
- else
- return; no need to turn if the right obstacle is more distant
- endif
- return
- turnleft:
- servopos motorR, 75
- servopos motorL, 75
- return
- turnright:
- servopos motorR, 225
- servopos motorL, 225
- return
- totalhalt:
- servopos motorR, 145
- servopos motorL, 147
- return
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Free Giftcards Method⭐⭐
Java | 1 sec ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ B
JavaScript | 3 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 5
JavaScript | 10 sec ago | 0.24 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 13 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ E
JavaScript | 14 sec ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ 3
JavaScript | 21 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ O
JavaScript | 25 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ W
JavaScript | 32 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand