Go to Post Safe zones are for the weak. - ChristopherSD [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2007, 00:01
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
useful easyC Pro Functions not on the Tree

Here is a list of functions in easyC PRO in API.h but are not on the block tree.

GetSecondClock(void); //Returns controller uptime in seconds
Returns unsigned
usage: Var = GetSecondClock();

unsigned long GetMsClock(void); //Returns controller uptime in miliseconds
Returns long
usage: Var = GetMsClock();

unsigned GetGameTime(void); //Returns the amount of time your robot has been running on the field in seconds. I think this includes autonomous.
Returns unsigned
usage: Var = GetGameTime();

void SetCameraDebugMode(unsigned char mode); // Called in Initialize and prints to screen all the commands going to and coming from the camera.
usage: SetCameraDebugMode(1) enabled
usage: SetCameraDebugMode(0) disabled

ReadSerialPortOne(void); // Read from Serial Port 1
ReadSerialPortTwo(void); // Read from Serial Port 2
Returns: unsigned char
Usage: Pending...

WriteSerialPortOne(unsigned char);
WriteSerialPortOTwo(unsigned char);
Usage void WriteSerialPortTwo(Var);
Var = 254;

To be continued...
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Closed Thread


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
easyC PRO Tutorial - Including the Camera Kingofl337 Programming 4 21-08-2007 16:32
Source code for the Easy C Pro library functions? bobpskier Programming 3 05-02-2007 21:39
Does EasyC Pro work with the USB-Chicklet? lightning_blast Programming 6 20-01-2007 23:39
Please post any new questions in the easyC PRO Forum Kingofl337 Programming 0 16-01-2007 11:43


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

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