I want to make a ATMega-based module to record several parameters of a go-kart while driving - pedals position, speed of the wheels and g-forces. I have a problem with choosing how to measure gas and brake pedals position. I was thinking about putting a small neodymium magnet on the pedal and magnetometer connected to the module on the floor. Is it a good way to do it? The pedal movement is just few inches. I don't to use resistors and movable parts because I'm worried it might break and block the pedals, which isn't a good thing when driving flat out.
Also, is the an easy way to measure angle of the steering wheel?