servo code help

should i use something other then maps

Probably, but you haven't told us what you are trying to achieve.