Camera/Nerf API and stuff
5 posters
Page 1 of 1
Camera/Nerf API and stuff
Current Draft of the dart gun API
As current a draft of the camera API as I have. Peasley can update later:
What we have for use case/UML thus far (I have no idea what we want or what I'm doing):
http://www.mediafire.com/file/r2yjn2xdmkm/camnerfUML.uml
What specifically are we needing to do for the UML/Use Cases/Stub Code? Anyone?
- Code:
//all turning directions will be with respect to the direction the gun is pointing.
class NerfGun{
//recorded angle where the gun is pointing. used for target marking.
int m_vert_angle, m_horiz_angle;
//private hopeful command
//this will prime the gun for firing
bool Prime();
public:
//initialize
NerfGun();
~NerfGun();
//connect and disconnect to nerf gun
bool Connect();
bool Disconnect();
//Move commands. One command moves the nerf gun in that direction a certain amount.
bool MoveUp();
bool MoveDown();
bool MoveLeft();
bool MoveRight();
//fire and stop commands
bool Fire();
bool Stop();
//public hopeful command
//this will return the gun to a predefined start position
bool ReturnToZero();
//optional commands
//will move the gun in the direction noted a certain amount
bool MoveUpLeft();
bool MoveUpRight();
bool MoveDownLeft();
bool MoveDownRight();
};
As current a draft of the camera API as I have. Peasley can update later:
- Code:
//moves the camera at a speed which is set by the sensitivity
//left: increases theta at a constant rate set by sensitivity
//right: decreases theta "" ""
//up: increases phi "" ""
//down: decreases phi "" ""
//Reference file: cameraMovement.pdf
void moveCamera(bool up, bool down, bool left, bool right, int sensitivity);
//Initialize shared memory between nerf gun and camera with key as the shared memory ID
int *createShm(int key);
What we have for use case/UML thus far (I have no idea what we want or what I'm doing):
http://www.mediafire.com/file/r2yjn2xdmkm/camnerfUML.uml
What specifically are we needing to do for the UML/Use Cases/Stub Code? Anyone?
JDinger- Posts : 32
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
For your camera API I see that you have one function for movement with true/false parameters. Are you expecting to be able to receive a command from the GUI that says, for example, "move up and left"?
I'm in the process of creating an API linking the GUI commands to your functions and I need to know what exactly you guys expect to be receiving.
I'm in the process of creating an API linking the GUI commands to your functions and I need to know what exactly you guys expect to be receiving.
swesson- Posts : 28
Join date : 2009-01-09
Re: Camera/Nerf API and stuff
Yes, so if you want the camera to move up and left you give it a true for up and true for left and false for bottom and right. Sensitivity will control how much it will turn for each command sent.
I am sending you a much more complete version of the cameras API right now.
-Brian Peasley
I am sending you a much more complete version of the cameras API right now.
-Brian Peasley
Peasley- Posts : 44
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
As far as the nerf gun goes, do your are your bool functions returning true on success?
Also, what is the Stop() function for?
Also, what is the Stop() function for?
swesson- Posts : 28
Join date : 2009-01-09
Re: Camera/Nerf API and stuff
Stop() was basically to stop the gun in its tracks. Whatever it's doing now, quit. The bools were to return true on success, but those might just end up being voids.
Any chance we could meet with the comms group tomorrow and hammer out exactly what each function does and if ya'll need anything extra? Basically to finalize the interface?
Any chance we could meet with the comms group tomorrow and hammer out exactly what each function does and if ya'll need anything extra? Basically to finalize the interface?
JDinger- Posts : 32
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
we meet on wednesdays* during our regular class time
if you cant then we can schedule something for tomorrow
if you cant then we can schedule something for tomorrow
Last edited by dsmarsh on Tue Feb 03, 2009 7:11 pm; edited 1 time in total (Reason for editing : changed monday to wednesday)
dsmarsh- Posts : 54
Join date : 2009-01-08
Age : 38
Re: Camera/Nerf API and stuff
Can anyone meet today at say, 4 PM?
JDinger- Posts : 32
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
Well i got 2 tests tomorrow, Ill probably have to meet up with yall at the regular time tomorrow...by the way sunday they got me off so we can meet earlier this sunday if we have to...
Chris
Chris
ccherry- Posts : 20
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
So are you guys going to be on campus today? I'd like to meet up to work out the small details we need to finalize for the API.
swesson- Posts : 28
Join date : 2009-01-09
Re: Camera/Nerf API and stuff
Yea I am going to be on campus, just come to room 021 and you should be able to find me. If I'm not there just check back every 15 min or so.
-Brian Peasley
-Brian Peasley
Peasley- Posts : 44
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
Turns out I may not make it to campus.
Did we agree that the initialization of the camera settings is going to be hardcoded? If that's the case, I believe our API will only include your camera movement function?
Also, what about the connect() and disconnect() functions for the nerf gun? Is the GUI going to have to calls these commands and if so, do they know this?
Did we agree that the initialization of the camera settings is going to be hardcoded? If that's the case, I believe our API will only include your camera movement function?
Also, what about the connect() and disconnect() functions for the nerf gun? Is the GUI going to have to calls these commands and if so, do they know this?
swesson- Posts : 28
Join date : 2009-01-09
Re: Camera/Nerf API and stuff
Yes, the camera parameters will be hardcoded.
-Brian Peasley
-Brian Peasley
Peasley- Posts : 44
Join date : 2009-01-08
Re: Camera/Nerf API and stuff
Blah one more thing. I forgot to ask about Zoom In/Zoom out. The GUI has a command number defined for those two actions, so either I need a function to put in the API for that or I need to ask them to take it out.
Lemme know.
Lemme know.
swesson- Posts : 28
Join date : 2009-01-09
Re: Camera/Nerf API and stuff
Yea that got put in.
-Brian Peasley
-Brian Peasley
Peasley- Posts : 44
Join date : 2009-01-08
Similar topics
» Camera/Nerf API
» Camera Movement
» Camera/Images API
» Camera Interfacing Works
» Stuff to present at Meeting Jan 26.
» Camera Movement
» Camera/Images API
» Camera Interfacing Works
» Stuff to present at Meeting Jan 26.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|