Trying to get a MaxBotix sonar going. We’re currently measuring the analog output, which works, but has a pile of (low) spikes in the output.
Want to investigate using the pulse width; looking at the Counter class. Trying to figure out something: does getPeriod() give us the time between two successive up-edges, or between an up-edge and a down-edge? how does setSemiPeriodMode affect this? (the docs indicate that specify highSemiPeriod true means to count up on both rising and failing, so does setting highSemiPeriod mean that it only counts on the rising, but indicates the period between the last rise and the last fall?)