map and smooth functions questions...

stevecobb76:
my accelerometer(tilt + or - variable)

I think you'll find that accelerometers can only be used to measure tilt when stationary.