Go Down

Topic: Help with rotation sensor (Read 1 time) previous topic - next topic

Grumpy_Mike



i_dont_know

I did the sensor and it is work, but my program only show the frequency like a integer number. I need the program shows the decimal part of frequency, anyone can help me?

wildbill

It's doing integer arithmetic. Try:
Code: [Select]
  freq=1000000.0/(n2pulse-npulse);

i_dont_know


Go Up