I still have my giant configuration file from the good ol' days. It sets up the RC channels and such but I have a large amount of variables for my camera tracking in the ArdupilotMega.pde. A few longs, a couple of floats and a structure is all it is but can I place all the camera specific variables and defines into a single .h?

Would an <include Cam_stuff.h> with everything just shoved in work?

 

Example of all things:

struct Location GPS_mark; 

float cur_pitch;

long cam_yaw;

#define TILT_REV 1

#define PAN_RANGE 18000

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    Including a .h file essentially places all the code in that file in the location of the include statement....
This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…