Go to Post Robots that don't obey the laws of physics will be checked for alien technology and magic. - Greg McKaskle [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 07-02-2011, 18:12
Logos Logos is offline
Registered User
FRC #1006
 
Join Date: Jan 2011
Location: Beaverton, On
Posts: 6
Logos is an unknown quantity at this point
Our Crio Won't Run deployed Code and there are no Error messages

Hi, Our Crio has not been able to use the driver station since day one of the build period and we have been madly trying to get it working

here's what we are doing.

we format the crio according to the documentations instructions exactly
then we push down the basic default code, and we have tried some of our own versions as well with no avail

after that we log into the driver account and it says we have the crio image in diagnostics and all of the lights are green. the only problem is is that our controls do not make our jaguars work but we do have green lights on our controls and when we press the trigger the light in the driver station responds, it's just our control board doesn't
  #2   Spotlight this post!  
Unread 07-02-2011, 19:47
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Our Crio Won't Run deployed Code and there are no Error messages

First,

There are 3-5 main languages used by people to program the robot. Can you please specify what language you are using?
  #3   Spotlight this post!  
Unread 07-02-2011, 20:25
Logos Logos is offline
Registered User
FRC #1006
 
Join Date: Jan 2011
Location: Beaverton, On
Posts: 6
Logos is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

Sorry about that, we are using c++ in windriver as our language
  #4   Spotlight this post!  
Unread 07-02-2011, 21:11
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

Are the green lights you mentioned communications, robot code and the stop botton?
  #5   Spotlight this post!  
Unread 07-02-2011, 21:19
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

I'm making the assumption that you're attempting to control the jaguars via PWM. Can you confirm?

Have you connected the PWM cables to the correct channel on the digital sidecar?

They PWM cables can be plugged in white-red-black or black-red-white
Are the PWM cables plugged in correctly? At both ends?

Also, did you set your team number at Window -> Preferences -> FIRST Downloader Preferences (can't remember how crucial this last item is)?
  #6   Spotlight this post!  
Unread 07-02-2011, 21:22
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

Whenever I deploy new C code, I have to issue a 'reboot' command over the serial port or power cycle the crio for the changes to take effect.
  #7   Spotlight this post!  
Unread 07-02-2011, 21:30
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

Are you enabling the robot?

When the crio reaches some magic point during its boot sequence, the signal light starts blinking rapidly. Once the crio is fully booted and ready to be enabled, the signal light blinks more slowly than before. When the robot is enabled, the signal is on with very minimal blinking. For all intents and purposes, the signal light is on steady.

Once you see the above three states, you'll know what I'm talking about.

The driver station has a setup tab. Is the team number set correctly?

One last thing while I'm thinking about it. Does the driver station show the battery voltage?
  #8   Spotlight this post!  
Unread 07-02-2011, 22:18
Logos Logos is offline
Registered User
FRC #1006
 
Join Date: Jan 2011
Location: Beaverton, On
Posts: 6
Logos is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

yes we are using pwms we reboot it every time, yes i mean the communications robot code and stop button green lights the team number is set correctly, the pwms are correctly plugged in yes the driver station shows battery voltage

thanks for looking at this sry i took a while to reply
  #9   Spotlight this post!  
Unread 07-02-2011, 23:13
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Our Crio Won't Run deployed Code and there are no Error messages

Are you pressing the green enable button? The status indicator should read "Teleoperated Enabled" in the driver station after you push the button.

When you try to drive, do you notice if the lights on the Jaguars are doing anything? I believe when they're receiving a neutral PWM signal they're solid orange, and then they flash green and red depending on which direction you're driving them. This is based on my (somewhat quirky) memory and CAN mode, so I'm not 100% sure. What are your Jags doing?

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #10   Spotlight this post!  
Unread 08-02-2011, 00:57
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Our Crio Won't Run deployed Code and there are no Error messages

Remember to change your battery constantly... If it drops below 11V, it sometimes does not respond.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #11   Spotlight this post!  
Unread 08-02-2011, 15:48
Logos Logos is offline
Registered User
FRC #1006
 
Join Date: Jan 2011
Location: Beaverton, On
Posts: 6
Logos is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

After we enable it, it syas teleop enabled and the jaguars lights keep flashing yellow like they are on standby. Our battery voltage is just above 12v
  #12   Spotlight this post!  
Unread 08-02-2011, 16:02
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Our Crio Won't Run deployed Code and there are no Error messages

Quote:
Originally Posted by Logos View Post
After we enable it, it syas teleop enabled and the jaguars lights keep flashing yellow like they are on standby. Our battery voltage is just above 12v
Flashing yellow like that indicates no signal I believe. Re-check all of your PWM cables for proper orientation and a snug fit. Otherwise it sounds like your robot is up and running.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #13   Spotlight this post!  
Unread 09-02-2011, 15:41
Logos Logos is offline
Registered User
FRC #1006
 
Join Date: Jan 2011
Location: Beaverton, On
Posts: 6
Logos is an unknown quantity at this point
Re: Our Crio Won't Run deployed Code and there are no Error messages

Except that it's not working, all of our pwm's are connected properly and our robot should be working but it isn't, thanks for your time guys
  #14   Spotlight this post!  
Unread 09-02-2011, 15:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Our Crio Won't Run deployed Code and there are no Error messages

Could be code and could be electrical.

Take a photo of the Digital Sidecar, so we can see what's connected where.

I don't remember if the basic default code actually does anything.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #15   Spotlight this post!  
Unread 09-02-2011, 17:51
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Our Crio Won't Run deployed Code and there are no Error messages

It may also be worth connecting a servo motor (any standard servo will do) to the sidecar and putting the 6V jumper in place to power it, and just seeing if it reacts at all to your joystick inputs.

Just to clarify, the servo should connect to one of the PWM outputs you're trying to drive a Jaguar with, just to clarify a valid signal is being generated.

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
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 23:43.

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