I'd take a spoiler for you any day.
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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread Yesterday, 17:02
faraz5557's Avatar
faraz5557 faraz5557 is offline
BB-R8ER
AKA: Faraz Masroor
FRC #5557 (BB R8ERS)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Miami, FL.
Posts: 21
faraz5557 is an unknown quantity at this point
Joystick doesn't update, motors don't drive until button press

We have a button that activates a command to set the mode of our CANTalons (eg. Percent vs speed vs something else I cant remember) to Percent (which should be the default mode). When we deploy our code and try to run the robot in teleop, the robot doesn't move, the Joystick values don't update on the SmartDashboard (especially weird! What does the CANTalon modes have to do with the joystick readings?), until we press the button, then both of those things start working normally and expected (though sometimes the driving is noticeably slower than other times, strange.) It's using ArcadeDrive I believe.

We tried in our init methods to basically emulate the button, by creating a new modeChangeCommand object and running execute() on them (so basically the driver doesn't have to press the button to start driving) but this doesn't work, apparently it's not the same as pressing the button. Did this in multiple places.

How to fix this? This didn't happen last year. Our CANTalons are on 2.2 firmware, and downgrading them all to 2.0 didn't help. Another team member suspects something has changed on the CANTalon end about the different modes the controllers can be in.
Reply With Quote
 


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:02.

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