Go to Post Blasphemy! This is FRC we must over analyze everything! - Ginger Power [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-03-2014, 19:32
Goldenchest Goldenchest is offline
Goldenchest
AKA: Gary Chien
FRC #1758 (Technomancers)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2010
Location: United States
Posts: 17
Goldenchest is an unknown quantity at this point
Add startup program to Driver Station account

How do I go about making a program launch automatically when logging into the Driver Station account of the Classmate? More specifically, it's a camera tracking program that will run in the background while the robot is operating. Any help or tips would be appreciated!
  #2   Spotlight this post!  
Unread 27-03-2014, 19:35
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Add startup program to Driver Station account

This should be what you're looking for
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #3   Spotlight this post!  
Unread 27-03-2014, 19:36
Goldenchest Goldenchest is offline
Goldenchest
AKA: Gary Chien
FRC #1758 (Technomancers)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2010
Location: United States
Posts: 17
Goldenchest is an unknown quantity at this point
Re: Add startup program to Driver Station account

I've already seen that page, actually

It works perfectly for the Developer account (which loads Windows 7 like any other computer). However, the Driver Station account still only loads the Driver Station software.
  #4   Spotlight this post!  
Unread 27-03-2014, 19:40
Goldenchest Goldenchest is offline
Goldenchest
AKA: Gary Chien
FRC #1758 (Technomancers)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2010
Location: United States
Posts: 17
Goldenchest is an unknown quantity at this point
Re: Add startup program to Driver Station account

Sorry, I think I may have misphrased my question. I don't particularly need the vision tracking program to launch when the Classmate is turned on. I want the program to launch whenever I log in to the Driver Station account or the Developer account.

Normally, I would just schedule a task that runs whenever I log on to the account. However, the Driver Station account restricts access to common Windows 7 features, so I don't see how I would create a task for that account. Is there any way to schedule a task from the Developer account so that the program launches whenever I log into the Driver Station account?

Last edited by Goldenchest : 27-03-2014 at 19:44.
  #5   Spotlight this post!  
Unread 27-03-2014, 19:43
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Add startup program to Driver Station account

Quote:
Originally Posted by Goldenchest View Post
How do I go about making a program launch automatically when logging into the Driver Station account of the Classmate? More specifically, it's a camera tracking program that will run in the background while the robot is operating. Any help or tips would be appreciated!
If you must start something when the driverstation launches. One of the things that loads automatically with the driverstation is the dashboard.exe

which is located in c:\Program Files\FRC Dashboard\dashboard.exe

You can replace that .exe with any exe and it will lauch when the driverstation is launched and default dashboard is selected.

If you use the dashboard and would like that to lauch as well... you can rename the real dashboard exe to something else, and create a script named dashboad.exe which runs your script and launches the dashboard as well.

You will need to take care of closing your program somehow on your own.

However, any reason why you just don't delete the DriverStation account and use one account for everything? (In which case the above Windows 7 method posted should work.)

FRC no longer locks you into a particular account on the driverstation.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 27-03-2014 at 19:45.
  #6   Spotlight this post!  
Unread 27-03-2014, 23:49
Kyler Hagler's Avatar
Kyler Hagler Kyler Hagler is offline
Jack of all trades
FRC #3310 (Black Hawk Robotics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Rockwall-Heath High School
Posts: 99
Kyler Hagler has a spectacular aura aboutKyler Hagler has a spectacular aura aboutKyler Hagler has a spectacular aura about
Re: Add startup program to Driver Station account

A neat little trick to have is when you open the driver account, open the task manager by hitting cntrl+shift+escape and then hit file and select new task then type "explorer.exe" and that should start the windows explorer. This will bring up the start menu, the task bar and the desktop itself. Hope this helps!
__________________
Kyler Hagler - 3310 Alumni/Mentor
Black Hawk Robotics Team 3310

2012 Dallas West Regional Winner
2013 Dallas Regional Winner
2014 Colorado Regional Winner
2015 Hub City Regional Winner
2016 Arkansas Regional Winner
2016 Hub City Regional Winner

Http://Team3310.com
  #7   Spotlight this post!  
Unread 28-03-2014, 06:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Add startup program to Driver Station account

The backstory on the Driver account is that it was done in order to make the Windows computer run less of Windows. The fear was that in the middle of the match, the laptop would start downloading updates, putting up dialogs about buying shoes at from Amazon, etc.

After using the laptop as DS for a number of years now, I think people are less afraid of that sort of thing, so the FTAs won't look at you funny if you run the driver or your other account. It is your laptop, and you can decide what accounts you make, which you run, and what you use for a dashboard.

They will, however, still look at you funny if your machine starts installing updates or buying shoes off amazon during a match and you expect them to help you. So the Driver account is there if you want to use it.

Greg McKaskle
  #8   Spotlight this post!  
Unread 28-03-2014, 12:28
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Add startup program to Driver Station account

Quote:
Originally Posted by Greg McKaskle View Post
The backstory on the Driver account is that it was done in order to make the Windows computer run less of Windows. The fear was that in the middle of the match, the laptop would start downloading updates, putting up dialogs about buying shoes at from Amazon, etc.

After using the laptop as DS for a number of years now, I think people are less afraid of that sort of thing, so the FTAs won't look at you funny if you run the driver or your other account. It is your laptop, and you can decide what accounts you make, which you run, and what you use for a dashboard.

They will, however, still look at you funny if your machine starts installing updates or buying shoes off amazon during a match and you expect them to help you. So the Driver account is there if you want to use it.

Greg McKaskle
Greg,

This is still a great idea. I still suffer from my kids installing spotify and itunes on any laptop they get their hands on... including the driverstation .

This may be a little much, but one of the things FIRST can do in the future to help teams with this scenario while not limiting what teams can do from a permissions standpoint is provide a script or checklist of Windows 7/8 items which teams should disable on their DriverStation.

We have such a script setup, which disables certain services, to prevent those things from happening and I am willing to share.

Teams can decide to run through the driverstation checklist or not.

Regards,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
  #9   Spotlight this post!  
Unread 28-03-2014, 22:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Add startup program to Driver Station account

Please do share it with FIRST. The primary thing the Driver account does is to modify the shell program. There are less drastic measures, and if you share your work, they may adopt it.

By the way, I didn't mention it in the other thread, but once your Dashboard is launched, it can be your conduit to launch other stuff.

Greg McKaskle
Closed Thread


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 02:44.

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