RobotLib
1
A set of software wrappers for Rovio, Roomba and NXT robots written in C#.
|
Manage time settings and time zones. More...
Public Member Functions | |
Time (Robot _robot) | |
The constructor. | |
void | SetTime (int seconds, int time_zone) |
Set server time zone and time. Sec1970 - seconds since "00:00:00 1/1/1970". TimeZone – Time zone in minutes. (e.g. Beijing is GMT+08:00, TimeZone = -480) | |
string | GetTime () |
Get current time zone and time. | |
void | SetLogo (string type, string position) |
Set a logo string on the image. showstring: time - time date - date ver - version pos: 0 – top left 1 – top right 2 – bottom left 3 – bottom right | |
string | GetLogo () |
Get a logo string on the image. | |
Public Member Functions inherited from Rovio.Component | |
Component (Robot _robot) | |
The constructor. | |
virtual void | Update () |
The Update function that manually refreshes the state of a given component (e.g. when AutoUpdate = false) | |
Additional Inherited Members | |
Public Attributes inherited from Rovio.Component | |
bool | AutoUpdate = true |
Automatic update option for methods requesting more than one piece of information. | |
Protected Attributes inherited from Rovio.Component | |
Robot | robot |
The robot class, accessible by all dervied classes. | |
Manage time settings and time zones.
Rovio.API.Time.Time | ( | Robot | _robot | ) |
The constructor.
string Rovio.API.Time.GetLogo | ( | ) |
Get a logo string on the image.
/todo Fix return value. The current Rovio implementation repeats the return value twice.
string Rovio.API.Time.GetTime | ( | ) |
Get current time zone and time.
void Rovio.API.Time.SetLogo | ( | string | type, |
string | position | ||
) |
Set a logo string on the image. showstring: time - time date - date ver - version pos: 0 – top left 1 – top right 2 – bottom left 3 – bottom right
void Rovio.API.Time.SetTime | ( | int | seconds, |
int | time_zone | ||
) |