Go to Post Based on my experience coaching basketball and robotics, there is no doubt in my mind that if a sports coach receives $x then a robotics coach should, too. - dtengineering [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 13-01-2007, 20:00
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
EasyC OI Inputs?

What is up with how EasyC handles input from the OI? I was trying to reprogram our 2005 bot for drivers to practice, and I decided to use EasyC to get familiar with it and because our programming team was considering using it.

[edit] aha! EasyC doesn't yell at you if you are using a "char" instead of an "unsigned char" to store motor data, probably because WPILib bases its drive code on a -127 to 127 range instead of the usual 0-255. This means that sometimes "0" is the 'neutral' value and other times it's 127. The other functions from WPILib (the "drive" library, anyways) appeare to be based on a -127 to 127 scale. When I looked I couldn't find this in the documentation, so made an educated guess the wrong way.

Why does the "drive" library use a different metaphor than the rest of the program? I find this rather confusing. [/edit]

I wasn't able to figure out what was going on, so I just went back to MPLAB and reprogrammed the robot there. Tried and true, I suppose

Last edited by Greg Marra : 13-01-2007 at 20:37.
 


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
VEX inputs Andrew Blair FIRST Tech Challenge 22 31-05-2006 18:17
Analog Inputs bush Programming 5 13-03-2006 17:49
Kickoff easyC workshop integrated into EasyC help file Dan Larochelle Programming 0 11-01-2006 06:12
PWM inputs? ghansel Control System 7 14-09-2005 17:57
Joystick Inputs Jatheon4316 Programming 12 06-02-2005 17:25


All times are GMT -5. The time now is 01:29.

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