Go to Post ...the list of the things we want to get done in the off-season has grown to such a length that I have to take off my shoes and socks to count them...and I think I may need to grow a few more toes soon. - StephLee [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 10-01-2017, 21:40
RaskorTheWise RaskorTheWise is offline
Registered User
AKA: Noah Gersh
FRC #2551 (Penguin Empire)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Novato, CA
Posts: 8
RaskorTheWise is an unknown quantity at this point
Code builds, deploys, and robot teleop enables, but nothing works.

Hello all, hopefully your builds and programs have been going well! Unfortunately, my team seems to have run into an issue where when we use nearly identical code to our robot from last year, we can't actually use our joysticks to drive this year's robot. The wiring is OK, and fits the parameters set in the code. Additionally, the current drive station setup works with the aforementioned Stronghold robot. However, despite enabling it, we cannot change our Spark motor controllers whatsoever. They work mechanically, but the code won't update in in teleop.

I have some code here.

Note that the commented out code is simply there because we haven't added any pneumatics or encoders yet.

Thanks for any help.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2017, 23:00
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 134
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Code builds, deploys, and robot teleop enables, but nothing works.

I would change line 75 to be:
Code:
daedalusDrive = new RobotDrive(leftDriveSpark, rightDriveSpark),
Also, what is the status color/pattern of the status lights on the Sparks when you enable the robot?
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2017, 23:10
RaskorTheWise RaskorTheWise is offline
Registered User
AKA: Noah Gersh
FRC #2551 (Penguin Empire)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Novato, CA
Posts: 8
RaskorTheWise is an unknown quantity at this point
Re: Code builds, deploys, and robot teleop enables, but nothing works.

Quote:
Originally Posted by AustinShalit View Post
I would change line 75 to be:
Code:
daedalusDrive = new RobotDrive(leftDriveSpark, rightDriveSpark),
Also, what is the status color/pattern of the status lights on the Sparks when you enable the robot?
That's the original code, and after switching it back we got it working. Because whoever wired it swapped the direction of the PWM in the Sparks.

Thanks though!
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2017, 10:59
frodobaggins05's Avatar
frodobaggins05 frodobaggins05 is offline
Registered User
AKA: Wiring Specialist
FRC #2783
Team Role: Electrical
 
Join Date: Oct 2016
Rookie Year: 2016
Location: Louisville KY
Posts: 37
frodobaggins05 is infamous around these partsfrodobaggins05 is infamous around these partsfrodobaggins05 is infamous around these parts
Re: Code builds, deploys, and robot teleop enables, but nothing works.

Quote:
Originally Posted by RaskorTheWise View Post
Hello all, hopefully your builds and programs have been going well! Unfortunately, my team seems to have run into an issue where when we use nearly identical code to our robot from last year, we can't actually use our joysticks to drive this year's robot. The wiring is OK, and fits the parameters set in the code. Additionally, the current drive station setup works with the aforementioned Stronghold robot. However, despite enabling it, we cannot change our Spark motor controllers whatsoever. They work mechanically, but the code won't update in in teleop.

I have some code here.

Note that the commented out code is simply there because we haven't added any pneumatics or encoders yet.

Thanks for any help.
Are you absolutely positive that you're wiring is ok?
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 13:59.

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