added cartesian conversions for plotting of data from arduino