Hey guys. I am looking at the code used by the open source ardupilothttp://code.google.com/p/ardupilot-mega/downloads/detail?name=ArduPlane-2.68.zip&can=2&q=
And I am having problem understanding this piece of code. Under GCS_Mavlink...
#if CAMERA == ENABLED
#endif // CAMERA == ENABLED
So for "g.camera.configure_msg(msg);",
the dot operator is for accessing a structure member. So "g" and "camera" is a structure name and "configure_msg(msg)" is a structure member? So I assume there exists a declaration somewhere stating that...
int 50; //or any integer
structure xxx camera;
struct yyy g;
But I couldn't find anything like that in the code. Can anyone tell me what exactly does that piece of code do? I have never learned anything about C structure before. I was just looking at tutorial online... Thanks a lot!