integrated deadreckoning

changed joy.c to work with updatePositionCont.c