Go to Post YES!!!!!! I read this and jumped! This is awesome and amazing! Thank you so much Dean Kamen and FIRST!!! YOU ARE AMAZING! - torihoelscher [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-12-2005, 22:38
davelu davelu is offline
Registered User
AKA: fffff
#0123 (fff)
Team Role: Programmer
 
Join Date: Jan 2005
Location: ffff
Posts: 69
davelu is infamous around these partsdavelu is infamous around these parts
Vex Programming help!

Hey
I tried googling around for help and this forum but i just couldn't find it... In ifi_aliases.h in what part of the program does it define the controls? returning the analog values of the analog joystick?
is it this? Cuz last year was p1_y p1_x it was quite obvious... .... sorry i'm a bit slow on this help would be apperieated...
I'm using MPLAB IDE rather than easy c (For Vex Programming) And the controllers i'm talking about are the ones that came with the vex robotics kit....
#define PWM_in1 rxdata.oi_analog01
#define PWM_in2 rxdata.oi_analog02
#define PWM_in3 rxdata.oi_analog03
#define PWM_in4 rxdata.oi_analog04
#define PWM_in5 rxdata.oi_analog05
#define PWM_in6 rxdata.oi_analog06
#define PWM_in7 rxdata.oi_analog07
#define PWM_in8 rxdata.oi_analog08
#define PWM_in9 rxdata.oi_analog09
#define PWM_in10 rxdata.oi_analog10
#define PWM_in11 rxdata.oi_analog11
#define PWM_in12 rxdata.oi_analog12

if so would it be somehing liek this if i do a four wheel drive using one anlog stick

pwm1=pwm2=pwm3=pwm4=pwm_in1;
if ( pwm_in2 < 127){
pwm1=pwm2=pwm_in2;
pwm3=pwm4=255-pwm_in2;
}
else if ( pwm_in2>127)
{
pwm3=pwm4=pwm_in2;
pwm1=pwm2=255-pwm_in2;
}

Last edited by davelu : 22-12-2005 at 22:58.
 


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
how to build a VEX programming module bblack7489 FIRST Tech Challenge 78 09-06-2011 16:03
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
VEX programming Gene F Programming 14 08-08-2006 22:21
Vex bot programming Q's BaldwinNYRookie Programming 6 09-10-2005 17:45
Programming Vex Starter Kit To Recieve From Serial Port firetrap FIRST Tech Challenge 0 26-09-2005 17:27


All times are GMT -5. The time now is 03:54.

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