Go to Post At my age I don't celebrate birthday's anymore. I'd rather hang out with teenagers and build robots and be in complete denial about my aging. - Koko Ed [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
  #5   Spotlight this post!  
Unread 24-01-2004, 18:37
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: problems assigning unsigned chars in FRC Code

p1_y is the input from the joystick port 1 y-axis. Changing p1_y isn't necessarily going to change pwm01 (depends on what other code you have).

Rather that setting p1_y and p2_y, try setting pwm01 and pwm02.

[Edit]
By the way, pwm01 is the output sent to pwm 1 when putdata() is called. It's not like last year where, by default, p1_y was the variable that both held the input from the joystick and was the output for pwm 1. This year we have more room for variables so now there is a seperate variable for input from joystick and output to pwm.

Last edited by Jay Lundy : 24-01-2004 at 18:40.
 


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
FRC default code hedgehogger Programming 2 21-01-2004 18:41
Problem with FRC Default code AsimC Programming 2 11-01-2004 19:22
ADC problems with C library and new code Larry Barello Programming 1 09-01-2004 22:31


All times are GMT -5. The time now is 10:12.

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