Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   On Board Computer (http://www.chiefdelphi.com/forums/showthread.php?t=106462)

Phyrxes 24-05-2012 14:29

Re: On Board Computer
 
The reason I asked about a tablet is the first generation transformer from Asus is now under $350 from most online vendors.

From its spec sheet you get a dual core Tegra 2 processor (1 GHz), 1 GB of DDR 2 memory, 16 GB of onboard memory, and weighs in at 1.5 pounds.

daniel_dsouza 26-05-2012 12:55

Re: On Board Computer
 
I would be sold on using an on-board computer, if someone could solve the problem of turning off the robot.

This is the scenario. After the match ends, volunteers urge you to hurry off the field, and you push the main breaker, killing the power to the your Windows 7 PC.

I've always been told to not unplug a computer unless all else has failed. I've also seen devices (robot controllers, phones, tablets, computers) corrupt themselves when there was a loss of power. Would there be any damage to the computer (hardware failure, software corruption)? More importantly, is there anyway to safely shut the computer down before cutting the power?

Hjelstrom 26-05-2012 14:03

Re: On Board Computer
 
We talk about that subject for a linux computer in a paper we just posted:

http://www.chiefdelphi.com/forums/sh...hreadid=106634

In windows, part of the solution is to have the program on your second computer execute the command "shutdown.exe /s". You need to trigger that somehow though.

RyanN 26-05-2012 16:21

Re: On Board Computer
 
Quote:

Originally Posted by daniel_dsouza (Post 1171616)
I would be sold on using an on-board computer, if someone could solve the problem of turning off the robot.

This is the scenario. After the match ends, volunteers urge you to hurry off the field, and you push the main breaker, killing the power to the your Windows 7 PC.

I've always been told to not unplug a computer unless all else has failed. I've also seen devices (robot controllers, phones, tablets, computers) corrupt themselves when there was a loss of power. Would there be any damage to the computer (hardware failure, software corruption)? More importantly, is there anyway to safely shut the computer down before cutting the power?

Here's how I would do it...

Whenever the finish VI is called, send a UDP packet to the PC that has a command to tell the PC to shutdown (gracefully). I already have it working actually.

Since I'm using LabVIEW, I have it set to call the command line function "shutdown -s -t 5" which gives LabVIEW a few seconds to end gracefully. Right after this call, I have a Quit function which will suspend all of LabVIEW, then will shut down the PC normally. By keeping the system cleaned and optimized (with SSD and i7 nonetheless), it only takes a matter of seconds to shutdown, plenty of time for you to casually walk to your robot on the field and shut it down.

There is also a choice of using the NI Real Time Operating System, which I believe our license has access to. It's designed to be able to turn off immediately if needed. It just runs a single program from the disk. The only faults would be if you're reading and writing data to the HD.

John 26-05-2012 19:16

Re: On Board Computer
 
Quote:

Originally Posted by RyanN (Post 1171632)

Whenever the finish VI is called

Does the finish VI actually get called at the end of a real match? I was under the impression that it just returned to the teleop disabled vi. Please correct me if I'm wrong.

RyanN 27-05-2012 05:32

Re: On Board Computer
 
Quote:

Originally Posted by John (Post 1171643)
Does the finish VI actually get called at the end of a real match? I was under the impression that it just returned to the teleop disabled vi. Please correct me if I'm wrong.

Hmm... good point. I think you're correct. The Finish VI is only called when you push the Finish button on the Robot Main VI, isn't it...

Well back to the drawing board...

John 27-05-2012 19:11

Re: On Board Computer
 
Quote:

Hmm... good point. I think you're correct. The Finish VI is only called when you push the Finish button on the Robot Main VI, isn't it...

Well back to the drawing board...
This year, my team had lights on our robot, that we wanted to do something specific at the end of the match. I believe we put the command in Disabled, and added some logic to only use the command on the third time disabled is called (once at beginning of match, once after auto, once at the end).

linuxboy 28-05-2012 02:31

Re: On Board Computer
 
Quote:

Originally Posted by RyanN (Post 1171677)
Hmm... good point. I think you're correct. The Finish VI is only called when you push the Finish button on the Robot Main VI, isn't it...

Well back to the drawing board...

I'm not an LV programmer but I have had to work with it a little for FRC. I would put a variable in called something like teleopRan and initialize it to False. Then when teleop starts you can set it to True, then when Teleop Disabled is run have a if that checks if teleopRan is true and match time is greater than say... 119 seconds (so if it disconnects on the field it doesn't turn off the computer in case it reconnects) then shut off the computer. You'll want to test this with practice mode obviously.

- Oliver

techhelpbb 31-05-2012 14:14

Re: On Board Computer
 
Quote:

Originally Posted by daniel_dsouza (Post 1171616)
I would be sold on using an on-board computer, if someone could solve the problem of turning off the robot.

This is the scenario. After the match ends, volunteers urge you to hurry off the field, and you push the main breaker, killing the power to the your Windows 7 PC.

I've always been told to not unplug a computer unless all else has failed. I've also seen devices (robot controllers, phones, tablets, computers) corrupt themselves when there was a loss of power. Would there be any damage to the computer (hardware failure, software corruption)? More importantly, is there anyway to safely shut the computer down before cutting the power?

We used a netbook on the robot this year. The easy way to fix the shutdown problem is not to have to shut it down at all. You are allowed to use the netbook with it's normal battery. Just make sure the software in the netbook and cRIO is smart enough to realize that one or the other might be off. As the netbook (with SSD) was mounted to withstand being smashed over the 6" bump in the field moving it off the field shouldn't create more shock unless you drop it.

Mk.32 01-06-2012 22:49

Re: On Board Computer
 
Something I Just came across: http://www.engadget.com/2012/06/01/r...nd-tinker-toy/

$35.. hard to beat but not sure about the computing power it has.

techhelpbb 02-06-2012 11:28

Re: On Board Computer
 
Quote:

Originally Posted by Mk.32 (Post 1172354)
Something I Just came across: http://www.engadget.com/2012/06/01/r...nd-tinker-toy/

$35.. hard to beat but not sure about the computing power it has.

The Raspberry Pi is quite nice. It's mostly attractive because of it's cost it's hardware is not really unique. However, actually ordering one is a real challenge. I got one but I could have made 100 of them in the time it took and now I'm on their waiting list again.


All times are GMT -5. The time now is 09:58.

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