|
Re: Sensor "de-noising"
Because of the tolerances involved, I'm wondering if it might be better to wait for the first poll to come up positive, then wait X milliseconds before stopping (or continuing, to go more than one slot on the elevator). This assumes that it starts bouncing at roughly the same spot, which I don't really have the ability to test.
That would serve the dual purpose of preventing accidental triggers both at the beginning of the rotation (when the screw leaves the range of the proximity sensor) and at the end of the rotation (when it comes back into range).
60 milliseconds (needed to check the sensor 3 times) might be too long unless there's some way of making a loop run faster than 20ms. 2 checks *might* work. Interrupts or a kalman filter sound like the ideal solution but would take far to long to get programmed.
I supposed I could tell it to knock back the speed after X milliseconds (roughly 90% of the way there) to make the time less of an issue. Then we'd have to buy and mount another Jaguar. Ugh.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun Attending: Raleigh NC Regional
Last edited by F22Rapture : 03-03-2013 at 18:19.
|