Go to Post Without fail, judges always come by when the spokespeople are in the bathroom, so others should be able to cover until they're back. - Jacob Bendicksen [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 19-02-2016, 10:03
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: FMS Offseason E-stop cannot be undone

Our student who is running the FMS tomorrow discovered the same E-stop issue last night. I didn't have time to investigate further.

Nice creative solution to the problem!

Another option for people who are comfortable with SQL databases would be to go in and manually clear the flag. I don't have a computer with the FMS installed handy right now, but I might look into making a script for that tonight.

I opened a bug in the CollabNet site here.
__________________
Team 2052- Knightkrawler
Mentor and volunteer

Last edited by Bryan Herbst : 19-02-2016 at 10:06.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2016, 14:20
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: FMS Offseason E-stop cannot be undone

As per Alex's comments on the bug I filed, it looks like there's no need to do anything with the database.

Simply restarting the two FMS services resolves the issue for me.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2016, 00:40
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
Re: FMS Offseason E-stop cannot be undone

Quote:
Originally Posted by Tanis View Post
As per Alex's comments on the bug I filed, it looks like there's no need to do anything with the database.

Simply restarting the two FMS services resolves the issue for me.
I may have overlooked that in the process of creating the database workaround. I'l be testing that out at our event tomorrow and confirm.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi