GUI API (2/4/09)
2 posters
Page 1 of 1
GUI API (2/4/09)
- Code:
// External Functions
//Codes for commands
#define ROVER_FORWARDS 101
#define ROVER_BACKWARDS 102
#define ROVER_RIGHT 103
#define ROVER_LEFT 104
#define ROVER_STOP 105
/*
#define FRONT_CAMERA_UP 201
#define FRONT_CAMERA_DOWN 202
#define FRONT_CAMERA_RIGHT 203
#define FRONT_CAMERA_LEFT 204
*/
#define FRONT_CAMERA_ZOOM_IN 205
#define FRONT_CAMERA_ZOOM_OUT 206
#define GUN_UP 301
#define GUN_DOWN 302
#define GUN_RIGHT 303
#define GUN_LEFT 304
#define GUN_FIRE 305
#define GUN_STOP 306
#define INITALIZE -111
//Stop the rover movement
//stop all commands until reset set
#define KILL -555
//return all variable things to zero
//returns the gun to a center position and return the camera to it's default zoom
//restarts the communication after a kill command has been sent
#define RESET -999
//codes for in-room camera select
#define CAMERA_TOP 501
#define CAMERA_TOP_LEFT 502
#define CAMERA_TOP_RIGHT 503
#define CAMERA_BOTTOM 504
#define CAMERA_BOTTOM_LEFT 505
#define CAMERA_BOTTOM_RIGHT 506
#define CAMERA_ROBOT1_FRONT 507
#define CAMERA_ROBOT1_GUN 508
#define CAMERA_ROBOT2_FRONT 509
#define CAMERA_ROBOT2_GUN 510
//rover ID is which rover to send to
//command name is the command as seen above
SendCommand(int rover_ID, int command_name);
//all cameras
RecieveImage(int camera_feed);
RecieveDart(int status);
API has been edited to mesh better with comms group
Last edited by rbontre on Wed Feb 04, 2009 8:56 pm; edited 11 times in total
rbontre- Posts : 59
Join date : 2009-01-08
Re: GUI API (2/4/09)
Absolutely brilliant there. (and for future revisions, the first to -> too)seanc wrote:This will keep the GUI from cluttering up with to many views but still give you the ability to have your cake and eat it too
Do we want the keys to light up when we press them? or to even mention it? if nothing else, it'll be a good piece in the stub code to see if we're doing it right.
I like it. Everything seems to be there in a well organized fashion
rbontre- Posts : 59
Join date : 2009-01-08
Re: GUI API (2/4/09)
as of now, I have attempted and come to the realization that StarUML does not work on linux or under wine.seanc wrote:do we need any other documents, the UML? who is working on that?
I know what it's supposed to look like, kinda. But I haven't had a chance to use a usable graphics program to do it. So I have a "paper drawn" version.
rbontre- Posts : 59
Join date : 2009-01-08
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|