|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |