Folding solar panels to avoid pits