Use int instead of float

This fixes the problem of imprecision with floats. It’s also convenient because, while X-Plane expects a float, it wants the value to be in units of 10KHz. So while it will be a float, the mantissa will always be 0.
Check to ensure frequency is valid and reduce the sampling interval for a more responsive feel