Rework grid calculations

-- Account for alternate wiring on odd-numbered columns.
   See diagrams in docs for details.