Argument of type ‘() => number’ is not assignable to parameter of type ‘number’.
Heres the codeblock related:
function percentage(partialValue: number, totalValue: number) {
return (100 * partialValue) / totalValue
}
sensors.gyro4.calibrate()
console.sendToScreen()
forever(function () {
y = percentage(sensors.gyro4.angle, gyroVals.FULLPOWER)
})
happens at
y = percentage(sensors.gyro4.angle, gyroVals.FULLPOWER)