Analog Write Issue with Xbee

Agreing with Pauls, if you can do a direct relation y=ax, and don't need an b factor, like y=ax+b, then you should divide directly. map() require more opperation then divide