It appears to have been the microswitch. The parking brake light does come on when I engage the brake. I just went out there and tried to push the latch manually with my hand while raising the top and it worked. Which makes sense since I had no problem opening the top yesterday but couldn't close it today, there is a microswitch for each direction. I also got caught in a big construction mess yesterday with a very rough, grated road which could be what knocked it loose.
Thanks for the input all. I have my temporary solution now and when I can get my hands on a soldering iron I should be able to fix more permanently.