int main (int argc, char *argv[]) { signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); int prevargc = argc; char **prevargv = argv; int index = 0; for (index = 1; index < argc; index++) { if ('-' == argv[index][0] && 'e' == argv[index][1]) { char *fullname = argv[index]; char *name = &fullname[2]; strncpy (encodedFileName, name, FILENAMESIZE); strcat (name, ".srt"); subFileName = fopen(name, "wb"); } if ('-' == argv[index][0] && 'b' == argv[index][1]) { videoChannel = ZAP_CHANNEL_VERT; } } gtk_init (&prevargc, &prevargv); return ardrone_tool_main (prevargc, prevargv); }
/* Implementing Custom methods for the main function of an ARDrone application */ int main(int argc, char** argv) { printf("Proudwing - build %s %s\n\n",__DATE__,__TIME__); signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); int i; if(argc > 1){ printf("[Proudwing] Arguments detected!\n"); for(i=1; i<argc; i++) { if(argv[i][0]=='-' && argv[i][1]=='v' && argv[i][2]=='\0'){ video_enabled = 1; printf("[Proudwing] Video stage enabled: %s\n", argv[i]); }else if(argv[i][0]=='-' && argv[i][1]=='q' && argv[i][2]=='\0'){ video_quality = 1; printf("[Proudwing] Video codec changed: %s\n", argv[i]); }else{ printf("[Proudwing] Argument not recognised: %s\n", argv[i]); } } } return ardrone_tool_main(argc, argv); }
/* Implementing Custom methods for the main function of an ARDrone application */ int main(int argc, char** argv) { argc_cpy=argc; //Rajout pour ardrone_tool_init_cystom problem argv_cpy=argv; return ardrone_tool_main(argc, argv); }
int main (int argc, char *argv[]) { signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); return ardrone_tool_main (argc, argv); }
int main(int argc, char** argv) { gtk_init(&argc, &argv); signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); return ardrone_tool_main(argc, argv); }
int main(int argc, char** argv) { printf("AR.Drone Navigation - build %s %s\n\n",__DATE__,__TIME__); gtk_init(&argc, &argv); signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); return ardrone_tool_main(argc, argv); }
/** * This example shows how to get the AR.Drone Live Video feed */ int main (int argc, char *argv[]) { signal (SIGABRT, &controlCHandler); signal (SIGTERM, &controlCHandler); signal (SIGINT, &controlCHandler); int prevargc = argc; char **prevargv = argv; int index = 0; for (index = 1; index < argc; index++) { if ('-' == argv[index][0] && 'e' == argv[index][1]) { char *fullname = argv[index]; char *name = &fullname[2]; strncpy (encodedFileName, name, FILENAMESIZE); } if ('-' == argv[index][0] && 'c' == argv[index][1]) { drone1Codec = UVLC_CODEC; drone2Codec = H264_720P_CODEC; } if ('-' == argv[index][0] && 'b' == argv[index][1]) { videoChannel = ZAP_CHANNEL_VERT; } if ('-' == argv[index][0] && 'd' == argv[index][1]) { debugging = 1; } } return ardrone_tool_main(prevargc, prevargv); }
/* Implementing Custom methods for the main function of an ARDrone application */ int main(int argc, char** argv) { return ardrone_tool_main(argc, argv); }
/* Implementing Custom methods for the main function of an ARDrone application */ int main(int argc, char** argv) { printf("\n\nTHIS IS MAIN RUNNING !\n\n"); return ardrone_tool_main(argc, argv); }