Go to Post But really, FIRST attracts all kinds of people; nerds, geeks, dorks, preps, techies, PR people, financial persons, etc. - Dorienne [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 12-02-2014, 12:08
Zaque Zaque is offline
FF: Bobo Brigade
AKA: Zachary H.
FRC #3352 (Flaming Monkeys)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Belvidere, Illinois
Posts: 91
Zaque has a spectacular aura aboutZaque has a spectacular aura aboutZaque has a spectacular aura about
Compressor code not working

Hi all,

Our compressor does not start using the premade compressor class.
Things we have done:
-Changed digital sidecars
-Tested the relay slot with a different spike powering a motor
-Confirmed all three lights are on on the digital sidecar without the cable to the crio plugged in
-Tried a different relay slot
-Turned on the spike with a button instead of compressor.start()
-confirmed the digital io slot worked

Things we didn't do:
-check the error window
-change digital modules

Any ideas? And if we can't get the compressor class to work, can I write my own control loop using the pressure switch?

Thanks,
Zaque
__________________
Zaque (Zach) H.
President
Programming/Electrical Lead
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2014, 13:32
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Compressor code not working

when you tried to poke the spike with a button (or test mode), did the compressor start?

can you verify that the digital input from the pressure switch is working?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2014, 15:17
Zaque Zaque is offline
FF: Bobo Brigade
AKA: Zachary H.
FRC #3352 (Flaming Monkeys)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Belvidere, Illinois
Posts: 91
Zaque has a spectacular aura aboutZaque has a spectacular aura aboutZaque has a spectacular aura about
Re: Compressor code not working

The compressor did turn on when I used a joystick button. The pressure switch worked on our test board, and when the PWM is taken out it returns a different value.
__________________
Zaque (Zach) H.
President
Programming/Electrical Lead
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2014, 15:19
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor code not working

Are you positive that the pressure switch is working?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2014, 15:28
Zaque Zaque is offline
FF: Bobo Brigade
AKA: Zachary H.
FRC #3352 (Flaming Monkeys)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Belvidere, Illinois
Posts: 91
Zaque has a spectacular aura aboutZaque has a spectacular aura aboutZaque has a spectacular aura about
Re: Compressor code not working

Quote:
Originally Posted by notmattlythgoe View Post
Are you positive that the pressure switch is working?
Yes. It worked on our practice board and returns the correct values for pressurized and low pressure.
__________________
Zaque (Zach) H.
President
Programming/Electrical Lead
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2014, 00:01
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Compressor code not working

so you can poke the compressor spike, and the compressor starts up.

I read that you checked the switch, but did you verify that the pressure switch input can be read by code

did you call Compressor.start()?
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 09:54.

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