Created ruler.c and header

A system for measuring distances with the encoders.