Position to the router made little difference. It was so frustrating. I changed the routine to send out three packets for each send. Just marginally better.
Then I changed the channel that my router was on. It was on 6 and I changed it to 1. Then everything was perfect again.