Clemson ECE 453
Would you like to react to this message? Create an account in a few clicks or log in to continue.

GUI API (2/4/09)

2 posters

Go down

GUI API (2/4/09) Empty GUI API (2/4/09)

Post  rbontre Fri Jan 30, 2009 2:31 pm

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
rbontre

Posts : 59
Join date : 2009-01-08

Back to top Go down

GUI API (2/4/09) Empty what else do we need

Post  seanc Mon Feb 02, 2009 5:04 pm

what else do we need?
here is my first sketch, let me know what you think
GUI API (2/4/09) Gui10
seanc
seanc

Posts : 30
Join date : 2009-01-07
Age : 38
Location : Clemson,SC

http://people.clemson.edu/~seanc

Back to top Go down

GUI API (2/4/09) Empty Re: GUI API (2/4/09)

Post  rbontre Mon Feb 02, 2009 5:37 pm

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
Absolutely brilliant there. (and for future revisions, the first to -> 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
rbontre

Posts : 59
Join date : 2009-01-08

Back to top Go down

GUI API (2/4/09) Empty Re: GUI API (2/4/09)

Post  seanc Mon Feb 02, 2009 7:49 pm

do we need any other documents, the UML? who is working on that?
seanc
seanc

Posts : 30
Join date : 2009-01-07
Age : 38
Location : Clemson,SC

http://people.clemson.edu/~seanc

Back to top Go down

GUI API (2/4/09) Empty Re: GUI API (2/4/09)

Post  rbontre Wed Feb 04, 2009 12:43 pm

seanc wrote:do we need any other documents, the UML? who is working on that?
as of now, I have attempted and come to the realization that StarUML does not work on linux or under wine.

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
rbontre

Posts : 59
Join date : 2009-01-08

Back to top Go down

GUI API (2/4/09) Empty Re: GUI API (2/4/09)

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum