repair_mask added to GearDownSelected. Array was initialized to zero, corresponding to GearUpSelected, so any masked regions of data appeared to be up. Test added.