3 ms·
I haven't really though about the speed of moving of the Voyager probes before, but I noticed it's km's/s which I didn't expect (not really into astronomy and p
by tsenkov 13y ago
I haven't really though about the speed of moving of the Voyager probes before, but I noticed it's km's/s which I didn't expect (not really into astronomy and physics). But I also noticed the page does the distance calculation offline, so I decided to just measure the distance on a second interval and derive the speed. I think their algorithm isn't accurate, since I am getting a reading of about 33 km/s and it seems that the actual speed is around 17 km/s. Here is my script:
var lastDistance = parseInt($("#voy1_km").text().replace(/(\sKM)|(,)/g, ""));
var interval = setInterval(function() {
var newDistance = parseInt($("#voy1_km").text().replace(/(\sKM)|(,)/g, ""));
var diff = (newDistance - lastDistance);
console.log("Speed: " + (diff * 3600) + " km/h");
console.log("Speed: " + (diff) + " km/s");
lastDistance = newDistance;
}, 1000);