Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   useful easyC Pro Functions not on the Tree (http://www.chiefdelphi.com/forums/showthread.php?t=53741)

Kingofl337 09-02-2007 00:01

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...


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi