Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

OmnibotWebcontrol

398 Byte hinzugefügt, 14:46, 11. Okt. 2019
<pre>[[Datei:omnibotYoutubeThumb.jpg|500px]]
<!DOCTYPE html><html><body>https://www.youtube.com/watch?v=WxPTA3W4Ek0
<button onmouseup=Greetings carbon unit. I am a Omnibot, a robot created by Takara TOMY in 1980th. My new carbon unit masters wanted to control me, but my original radio control unit is lost.But my new masters are so called "myFunctionOff()Hackers" onmousedown="myFunctionOn(1600)">Forward</button>, they found a way to control me without the original control unit. The masters using the cassette recording unit in my belly with a so called bluetooth adapt000r. They also figured out my secret control frequencies listed below .... don't tell any one, it is a secret!!! The masters preparing a so called web application, so everybody can control me with a comput0rrrr connected via bluetooth. The source code is available on GitHub. But, it is not completed yet... typical carbon unit... they are slow.
<p id{| class="demowikitable"></p>|-! frequency !! function|-|1600Hz || Forward|-|2000Hz || Backward|-|2200Hz || Left|-|1800Hz || Right|-|1400Hz || audio bypath mode on|-|2600Hz || Test2 |-|2400Hz || Test3|-|2800Hz || Test4|-|1200Hz || LeftForward|-|1000Hz || LeftBackward|-|800Hz || RightForward|-|4600Hz || audio bypath mode on|}
<p>A function is triggered when the button is clickedhttps://github. The function outputs some text in a p element with id="demo".<com/hackffm/p>OminibotWebRemote
<script>
function myFunctionOff() {
document.getElementById("demo").innerHTML = "Hello World";
gainObj.gain.value = 0;
}
function myFunctionOn(f) {
document.getElementById("demo").innerHTML = "Hello World2";
osc.frequency.value = f;
gainObj.gain.value = 1;
}
context = new AudioContext;
osc = context.createOscillator();
osc.type=osc.SQUARE;
osc.frequency.value = 440;
osc.start(0);
var gainObj = context.createGain();
gainObj.gain.value = 0;
osc.connect(gainObj);
gainObj.connect(context.destination);
</script>
</body></html> </pre>[[Datei:Ominibot.jpg|240px]]
913
Bearbeitungen