Go to Post And then since this is GTR-W there's also maple syrup somewhere and the drive team says "Sooory." - PayneTrain [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 22-02-2007, 15:11
Pace Pace is offline
Registered User
no team
 
Join Date: Feb 2007
Location: Colorado
Posts: 4
Pace is an unknown quantity at this point
Combining RC and user motor control

I'm working on a project with Colorado State University to control the VEX robot using serial communications. I'm coding entirely in MPLAB with C18 and working from the default firmware. The serial communications part is going smoothly, but my problem is this.

In autonomous mode I can control the motors directly, but I receive no RC input whatsoever.

In non-autonomous mode I can receive RC input, but can only control the motors when the RC is turned on.

I'd like to get RC input and control the motors directly (as in pwm01 = 255; ), still having control of the robot if the RC is turned off.

My first thought was to switch between autonomous and non-autonomous depending on the rxdata.rc_receiver_status_byte, however, it doesn't actually get sent in properly in autonomous mode (makes sense, otherwise someone could control thier robot in autonomous mode by turning the RC on and off.) So if there's no input whatsoever to signify the RC turning on when in autonomous mode this switching won't work.

I'm currently looking into using Generate_PWMs() and skipping the master processor, but the timing issues involved there worry me a little (I'd like a very stable platform), however, I may just be paranoid.

If anyone has any other ideas I'd appreciate any input. My current thoughts tell me it's impossible to get any RC input in autonomous mode, but it would still seem reasonable that theres some way for the robot motors to run even when the RC is turned off in non-autonomous mode.

Thanks for any help you might be able to give.
 


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
Auto aim in user control mode JamesBrown Programming 2 19-02-2006 12:58
Combining ADC, Serial, and Camera_s codes kaszeta Programming 6 22-01-2006 20:23
Member of multiple (FRC, FLL, VEX) teams in profile/user control panel? Elgin Clock CD Forum Support 3 03-12-2005 20:41
Combining multiple objects in different files into the same scene and file? DinkyDogg 3D Animation and Competition 8 19-02-2005 19:14
Dashreader.dll: A Visual Basic .NET user control to read the dashboard port Ameya Programming 4 12-01-2003 23:40


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

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