I'm working on a pitch speed calculator as part of a bigger app. Everything is coded however the speed output is way off. I've double checked the equations multiple times.
local function calculator()
--time2=time*0.000002777777777777778
--print(time2)
--speed=distance/time2
speed=(distance/time)*(3600/5280)
--if speed > 114 then
--show.text = "110+"
--[[else]] show.text= math.floor(speed)
--end
end
local startit = function(event)
time = 0
speed = 0
counters = timer.performWithDelay(1, counter, 0)
show.text="..."
end
local endit = function(event)
timer.cancel(counters)
calculator()
end
bbutton = ui.newButton{
default = "media/starter.png",
over = "media/ender.png",
onPress = startit,
onRelease = endit,
wid=200,
hei=125
}