Go to Post Another lesson is don't post on Chief Delphi disappointed, stop and evaluate first. Emotions suck sometimes. :-) - sircedric4 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 20-10-2015, 19:34
MaestroRoboto's Avatar
MaestroRoboto MaestroRoboto is offline
Registered User
AKA: Hiren Bhavsar
FLL #0020 (The Rocketeers)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2012
Location: United States
Posts: 25
MaestroRoboto has a spectacular aura aboutMaestroRoboto has a spectacular aura about
Relay Error

Hello, I'm having some issues with Relays and I'm not entirely sure why. If anyone has any insight it would be much appreciated.

How I'm calling the pneumatics class:
Code:
Pneumatics pneu = new Pneumatics();
How I'm creating the relays:
Code:
Relay oneR = new Relay(2);
	   Relay twoR = new Relay(0);
__________________
01001000 01001001 00100000 00111010 00101001


Reply With Quote
  #2   Spotlight this post!  
Unread 20-10-2015, 19:56
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,574
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Relay Error

There's not nearly enough detail here to figure out your problem; bits of source code and wiring diagrams would be nice. The one thing that strikes me from what little is here is that you are linking the Relay and Pneumatics classes. Doing so was common up through 2014, when (spike) Relays were used to turn the compressor on/off, and could also (iirc) be used to control pneumatic solenoids. 3946 did not use pneumatics in 2015 (we have this as a fall project), so I'm not familiar with the details, but I believe that the normative pneumatics system in 2015 used the PCM (Pneumatics Control Module) to control the compressor through an entirely automated system that improved compressor startup efficency over a spike, and also used the PCM to control the solenoid valves. The bottom line is that a Relay and a Pneumatic system, while they could coexist on the same robot, were usually parts of different subsystems.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 20-10-2015 at 19:59.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-10-2015, 21:29
MaestroRoboto's Avatar
MaestroRoboto MaestroRoboto is offline
Registered User
AKA: Hiren Bhavsar
FLL #0020 (The Rocketeers)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2012
Location: United States
Posts: 25
MaestroRoboto has a spectacular aura aboutMaestroRoboto has a spectacular aura about
Re: Relay Error

To go into more detail, we're using three double solenoids to fill three air tanks with nitrogen gas. The two relays are used to fire the air in the tanks (3 barreled t-shirt cannon).

The strange things is if I put the relays into the robot.java class and use them from there I do not get an error. I'm not entirely sure why putting them into another class is causing issues.
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 10:16.

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