Go to Post I might be a nerd, but I am definitely a pi freak! - Courtneyb1023 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-03-2015, 09:57
DonavanAnnalise DonavanAnnalise is offline
Registered User
FRC #4284
 
Join Date: Jan 2015
Location: Cincinnati, Ohio
Posts: 1
DonavanAnnalise is an unknown quantity at this point
Only One side of the "mock elevator" is working

When we have one of the two mock sides commented out they work but when placed together they don't work only one dose
**This is on a prototype for testing code**

Jaguar E1 = new Jaguar(5);
Jaguar E2 = new Jaguar(4);

float Elivate = 1f;
float Elivate2 = 1f;

if(totestick.getRawButton(4)){
E1.set(-Elivate);
E2.set(Elivate2);
Relay1.set(Relay.Value.kForward);
Relay2.set(Relay.Value.kReverse);

}else if (totestick.getRawButton(1)){
// turns the elevator to Reverse
E1.set(Elivate);
E2.set(-Elivate2);
Relay1.set(Relay.Value.kOff);
Relay2.set(Relay.Value.kOn);

} else {
E1.set(0.0);
E2.set(0.0);
// else it is off
}
 


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 01:46.

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