Go to Post Success is the gleam in a child's eyes when they catch their first glimpse of your creation and their life is forever changed. - SlamminSammy [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2013, 14:58
augusto.sk augusto.sk is offline
Registered User
FRC #0383
 
Join Date: Jan 2013
Location: Brazil
Posts: 1
augusto.sk is an unknown quantity at this point
RobotOpen Spike problems

Hello, my name is Augusto and im a programming student from the team 383,

Im using an Arduino with Robot Open shield and im trying to control a spike. I turn it foward and stop, but i can`t turn backwards




if (estadoBtnA == true)
{
roleteOn = 1;
roleteOff = 0;

}

if (estadoBtnB == true)
{
roleteOn = 0;
roleteOff = 1;

}




if (roleteOn == 1)
{
analogWrite(SIDECAR_DIGITAL1, 255);
}


if (roleteOff == 1)
{
analogWrite(SIDECAR_DIGITAL1, 127);
}



Best regards!
Augusto
  #2   Spotlight this post!  
Unread 13-02-2013, 09:43
nathan.chupp's Avatar
nathan.chupp nathan.chupp is offline
Registered User
AKA: CupCake
FRC #3509 (Fallout)
Team Role: RoboCoach
 
Join Date: Feb 2009
Rookie Year: 2004
Location: Edwardsburg
Posts: 14
nathan.chupp is an unknown quantity at this point
Re: RobotOpen Spike problems

Can you post all of your code and i can try and debug it for you ?
  #3   Spotlight this post!  
Unread 14-02-2013, 12:34
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: RobotOpen Spike problems

I think the problem is the analog write data, please review the documentation.

I think the values are...

255 == full forward
127 == off no output
1 == full reverse

I don't think you ever tell it to go reverse, only stop and forward.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Closed Thread


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

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