Go to Post I looked at it and originally thought it was a crazy idea... then I looked at it again and it still sounds like a crazy idea. - Yipyapper [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 18-01-2008, 18:25
drewjones13's Avatar
drewjones13 drewjones13 is offline
Registered User
no team
Team Role: College Student
 
Join Date: Jan 2007
Rookie Year: 2006
Location: CA
Posts: 13
drewjones13 is an unknown quantity at this point
Exclamation IR Issues in Mplab

We are currently using mplab and we having trouble with the pulses of the remote. Here is an example of our coding:
Code
Code:
if (rc_dig_in10 == 1)
{
    cmd0; //Call the cmd0(forward) subroutine
}
Subroutine
Code:
unsigned char cmd0()
{
    pwm01 = pwm02 = 190; //Forward Half Speed
    return 0;
}
Basically this is saying that if rc_dig_in10(we are using digital i/o ports 10 through 13) is equal to 1 it will call the cmd0 subroutine. The cmd0 subroutine tells both wheels to go forward half speed.
But this makes it so the pulses just pulse the motors forward and do not hold them at constant forward movement. What are other teams doing to rectify/compensate for this?
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MpLab issues! AdmiralAllen Programming 3 15-01-2007 22:47
MPLAB Issues jcatt Programming 3 02-02-2006 17:49
Issues with MPLAB 7.30 gnirts Programming 4 25-01-2006 22:57
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


All times are GMT -5. The time now is 04:57.

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