Go to Post Now its up to us to show that what we shout from the high places is also true down on the street. - KenWittlief [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 02-08-2014, 05:36 PM
SaguaroSwag SaguaroSwag is offline
Registered User
AKA: TJ Smith
FRC #4146 (Sabercat Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2008
Location: United States
Posts: 2
SaguaroSwag is an unknown quantity at this point
Robot moves for 1 second, then stops.

Right now we are trying to introduce a logitech gamepad into our code instead of a single joystick. We coded it in but now when we initialize teleop the robot moves for an unknown reason for about a second, then stops.
Attached Files
File Type: cpp GamePad.cpp (6.6 KB, 4 views)
File Type: h GamePad.h (2.7 KB, 1 views)
File Type: cpp MyRobot.cpp (5.8 KB, 3 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 02-08-2014, 05:53 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Robot moves for 1 second, then stops.

one problem is that you are declaring both your cockingMotor and your cockingServo on PWM 6, and the code is probably crashing because of it.
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:51 AM.

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