View Single Post
  #1   Spotlight this post!  
Unread 19-02-2016, 01:15
MecaNaught's Avatar
MecaNaught MecaNaught is offline
Automation Engineer
FRC #3102 (Tech-No-Tigers)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Minnesota
Posts: 19
MecaNaught is on a distinguished road
FMS Offseason E-stop cannot be undone

We are using the latest FMS Offseason software from: http://www.firstinspires.org/resourc...-season-events

Version: 2015_FMSOffSeason_Package_2_30

We've had an oddity where if the FMS operator selects the 'E-stop' option during a round, the e-stop will not be reset through any means. We have restarted the robot with repluggin the battery, reset comms, rebooted driver stations and FMS computer, still 'E-stopped' even if nothing is connected to it. We can still connect directly to the robots and they aren't E-stopped.

What seems to be happening is that the Database is being written to when they're E-stopped, but some dev on the software forgot to make it toggle. Reinstalling the software resets the E-stops.

To get around this, I've created a few batch scripts that will backup and reset the FMS database without having to reinstall. See the .zip attached below.

DISCLAIMER: As always, review any scripts you find online, I'm not responsible if you don't know batch
-ChiefDelphi Doesn't support [spoiler], hurrah for text everywhere.

Backup:
1. Download and extract .bat files to desktop

2. Create shortcuts for each .bat

3. For each shortcut, right click->Properties->Shortcut Tab->Advanced->Run as administrator.

4. Start FMS, setup your events and teams in the scheduler.

5. Exit FMS and audience display, run the 'FMSData-Backup' shortcut. Follow any obvious on-screen prompts. If successful, you should be able to exit with any key after a few seconds.


Test this before you need it
Restore:
1. Start FMS, enter in team numbers and activate round in practice match as normal.

2. E-stop a robot.

3. After round, exit FMS and Audience display.

4. Run 'FMSData-Restore' shortcut. Should exit with any key after a few seconds.

5. Restart FMS software, go back to practice match tab, you should no longer see red e-stop buttons. Your schedule should be the same from when you backed it up.

Misc:
FMSData-RestartService.bat will restart the FMS base service in case the above scripts don't succeed.

I'm hoping I looked over something, but if not, this was a fun experiment.
Attached Files
File Type: zip FMSData-Backup.zip (1.9 KB, 5 views)
Reply With Quote