repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Control/ardrone_control.c
<filename>drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Control/ardrone_control.c<gh_stars>10-100 #include <config.h> #include <VP_Os/vp_os_print.h> #include <VP_Com/vp_com.h> #include <ardrone_api.h> #include <ardrone_tool/ardrone_tool.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/Control/...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/quaternions.c
<filename>drone-sdk/ARDroneLib/Soft/Lib/Maths/quaternions.c<gh_stars>10-100 /** * \file quaternions.c * \brief Quaternions library used by Mykonos * \author <NAME> <<EMAIL>> * \version 1.0 */ #include <VP_Os/vp_os_assert.h> #include <Maths/quaternions.h> #include <Maths/maths.h> const quaternion_t ...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Release/ARDrone.h
<reponame>mikeadams1/oculus-drone /*! \mainpage ParrotBuild <center><h1> ARDrone API documentation</h1></center> <div align="center"> <hr> </div> <div><center> This documentation provides an API for ARDrone host development and is still a work in progress. The following schema explain the structure of the...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/UI/ardrone_tool_ui.h
<gh_stars>10-100 #ifndef _ARDRONE_TOOL_UI_H_ #define _ARDRONE_TOOL_UI_H_ #include <VP_Os/vp_os_types.h> #include <ardrone_tool/UI/ardrone_input.h> C_RESULT ui_pad_ab(int32_t value); C_RESULT ui_pad_ad(int32_t value); C_RESULT ui_pad_ag(int32_t value); C_RESULT ui_pad_ah(int32_t value); C_RESULT ui_pad_l1(int32_t valu...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/ControlData.h
<gh_stars>10-100 /* * ControlData.h * ARDroneEngine * * Created by <NAME> on 14/01/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #ifndef _CONTROLDATA_H_ #define _CONTROLDATA_H_ #include "ConstantsAndMacros.h" #define SMALL_STRING_SIZE 16 #define MEDIUM_STRING_SIZE 64 typedef enum _EMERGENCY_STA...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/win32/intrin.h
<reponame>mikeadams1/oculus-drone #ifndef __INTRIN__H__ #define __INTRIN__H__ #ifdef USE_MINGW32 // #undef always_inline #ifdef __GNUC__ static INLINE uint32_t _BitScanReverse(uint32_t* index, uint32_t mask) { __asm__("bsrl %[mask], %[index]" : [index] "=r" (*index) : [mask] "mr" (mask)); return mask ? 1 : 0...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Navigation/Sources/UI/ui.c
<gh_stars>10-100 #include <config.h> #include <ardrone_api.h> #include <UI/ui.h> #include <ihm/ihm.h> C_RESULT custom_reset_user_input(input_state_t* input_state, uint32_t user_input ) { return C_OK; } C_RESULT custom_update_user_input(input_state_t* input_state, uint32_t user_input ) { //int32_t mayday_timeout =...
mikeadams1/oculus-drone
drone-sdk/Examples/iPhone/FreeFlight/Classes/ES1Renderer.h
// // ES1Renderer.h // FreeFlight // // Created by <NAME> on 16/10/09. // Copyright Parrot SA 2009. All rights reserved. // #import "ESRenderer.h" #import <OpenGLES/ES1/gl.h> #import <OpenGLES/ES1/glext.h> #import "ARDroneProtocols.h" // #define DISPLAY_DART @interface ES1Renderer : NSObject <ESRenderer> { @pri...
mikeadams1/oculus-drone
server/server-socket.h
/** * File: server-socket.h * --------------------- * Provides a single function that sets up * a server socket, binding it to any of the * IP addresses associated with the host machine * on the specified port. */ #ifndef _server_socket_ #define _server_socket_ /** * Constant: kServerSocketFailure * --------...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/vp_os_print.h
<reponame>mikeadams1/oculus-drone<gh_stars>10-100 // ---------------------------------------------- // // Author : <<EMAIL>> // Date : 03/01/2007 // // Parrot Video SDK : Os API // // ---------------------------------------------- #ifndef _OS_PRINT_H_ #define _OS_PRINT_H_ #include <stdio.h> #ifdef __MACOSX__ #i...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/video.c
<gh_stars>10-100 /* * AR Drone demo * * OpenGL video rendering */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> #include <assert.h> #include <GLES/gl.h> #include <GLES/glext.h> #include "app.h" static uint8_t *pixbuf = NULL; static GLuint texture; static...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Control/ardrone_control_soft_update.c
#include <VP_Os/vp_os_malloc.h> #include <config.h> #include <ardrone_api.h> #include <ardrone_tool/Control/ardrone_control_soft_update.h> int8_t* send_buffer = NULL; int32_t send_buffer_size = 0; C_RESULT ardrone_control_soft_update_run( uint32_t ardrone_state, ardrone_control_soft_update_event_t* event ) { C_R...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os_print.h
<gh_stars>10-100 // ---------------------------------------------- // // Author : <<EMAIL>> // Date : 03/01/2007 // // Parrot Video SDK : Os API // // ---------------------------------------------- #ifndef _OS_PRINT_H_ #define _OS_PRINT_H_ #ifdef _ECOS #include <cyg/kernel/diag.h> #define PRINT diag_printf ...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/app.c
/* * AR Drone demo * * originally based on Android NDK "San Angeles" demo app */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <errno.h> #include <sys/time.h> #include <time.h> #include <app.h> THREAD_HANDLE nav_thread; THREAD_HANDLE at_thread; THREAD...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api_thread_helper.h
<reponame>mikeadams1/oculus-drone /** * \brief VP Api. Thread utility. * \brief These macros are there to help static declaration of threads and their management. * \author <NAME> <<EMAIL>> * \version 1.0 * \date first release 19/12/2006 * \date modification 26/03/2007 */ #ifndef _THREAD...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Common/vision_common.h
#ifndef _VISION_COMMON_H_ #define _VISION_COMMON_H_ // NUMBER OF TRACKERS FOR EACH TRACKING #define NB_CORNER_TRACKERS_WIDTH 5 /* number of trackers in width of current picture */ #define NB_CORNER_TRACKERS_HEIGHT 4 /* number of trackers in height of current picture */ #define DEFAULT_NB_TRACKERS_WIDTH...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/Navdata/navdata.h
#ifndef _NAVDATA_H_ #define _NAVDATA_H_ #include "ConstantsAndMacros.h" #include "ARDroneTypes.h" C_RESULT ardrone_navdata_reset_data(navdata_unpacked_t *nav); C_RESULT ardrone_navdata_get_data(navdata_unpacked_t *data); C_RESULT ardrone_navdata_write_to_file(bool_t enable); ARDRONE_FLYING_STATE ardrone_navdata_get_f...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/mobile_main.c
<filename>drone-sdk/ControlEngine/iPhone/Classes/mobile_main.c /* * mobile_main.c * Test * * Created by <NAME> on 19/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #include "mobile_main.h" #include "wifi.h" #define MAXADDRS 16 //#define DEBUG_THREAD 1 static bool_t bContinue = TRUE; char dron...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage.c
<reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage.c /* * video_stage.c * Test * * Created by <NAME> on 22/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #include <ardrone_tool/Video/video_stage.h> #define NB_STAGES 5 PIPELINE_HANDLE pipeli...
mikeadams1/oculus-drone
drone-sdk/Examples/Android/ardrone/project/jni/video_stage.c
<gh_stars>10-100 /* * video_stage.c * Test * * Created by <NAME> on 22/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #include <VP_Api/vp_api.h> #include <VP_Api/vp_api_error.h> #include <VP_Api/vp_api_stage.h> #include <VP_Api/vp_api_picture.h> #include <VP_Api/vp_api_supervisor.h> #include <...
mikeadams1/oculus-drone
drone-sdk/Examples/iPhone/FreeFlight/Classes/Menus/MenuController.h
// // MenuController.h // ArDroneGameLib // // Created by <NAME> on 5/4/11. // Copyright 2011 Parrot. All rights reserved. // #import <UIKit/UIKit.h> #import "ARDroneProtocols.h" // States & Actions: #define FSM_HUD @"hud" enum { MENU_STATE_UPDATER, MENU_STATE_HUD, NUMBER_OF_MENU_STATES }; enum { MENU_AC...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Com/config_wifi.c
<reponame>mikeadams1/oculus-drone #include <VP_Os/vp_os_malloc.h> #include <config.h> #include <ardrone_tool/Com/config_com.h> #include <VP_Com/vp_com_socket.h> #include <VP_Com/vp_com.h> #include <arpa/inet.h> #include <sys/types.h> #include <ifaddrs.h> #include <errno.h> #include <stdio.h> #define BUFFER_SIZE 1...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/ControlData.c
/* * ControlData.m * ARDroneEngine * * Created by <NAME> on 14/01/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #include "ConstantsAndMacros.h" #include "ControlData.h" //#define DEBUG_CONTROL ControlData ctrldata = { 0 }; navdata_unpacked_t ctrlnavdata; extern char iphone_mac_address[]; void ...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os_thread.h
<filename>drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os_thread.h /** * @file thread.h * @author <EMAIL> * @date 2006/12/15 */ #ifndef _THREAD_INCLUDE_OS_ #define _THREAD_INCLUDE_OS_ #include <VP_Os/vp_os_types.h> #include <vp_os_thread_dep.h> /** * Prototype definition of a thread routine. */ #define ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/vision_math.c
<gh_stars>10-100 #include <VP_Os/vp_os_print.h> #include <Maths/vision_math.h> extern float32_t used_focal; void euler_matrix(float32_t theta, float32_t phi, float32_t psi, matrix33_t *mat) { float32_t cthe, sthe, cphi, sphi, cpsi, spsi; // Euler angles are now in radians cthe = cosf(theta); sthe = sinf(the...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_time.h
#ifndef _ARDRONE_TIME_H_ #define _ARDRONE_TIME_H_ #ifndef _WIN32 #include <sys/time.h> #endif #include <VP_Os/vp_os_types.h> typedef struct _ardrone_timer_t { bool_t init; struct timeval tv_init; struct timeval tv; } ardrone_timer_t; C_RESULT ardrone_timer_reset(ardrone_timer_t* timer); C_RESULT ardrone_t...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/parrotos/vp_os_signal.c
#include <VP_Os/vp_os_signal.h> void vp_os_mutex_init(vp_os_mutex_t *mutex) { sup_mutex_init(mutex, FALSE); } void vp_os_mutex_destroy(vp_os_mutex_t *mutex) { sup_mutex_destroy(mutex); } void vp_os_mutex_lock(vp_os_mutex_t *mutex) { sup_mutex_lock(mutex); } C_RESULT vp_os_mutex_trylock(vp_os_mutex_t *mutex)...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/vp_os_types.h
<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Os/vp_os_types.h<gh_stars>10-100 /** * \brief VP OS. Types declaration. * \brief These types are used to provide clean types declaration for portability between OSes * \author <NAME> <<EMAIL>> * \version 1.0 * \date first release 19/12/2006 * \date m...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VLIB/video_huffman.c
#include <VLIB/Platform/video_utils.h> #include <VP_Os/vp_os_malloc.h> #include <VLIB/video_huffman.h> #include <VLIB/video_packetizer.h> huffman_tree_t* huffman_alloc( int32_t num_max_codes, int32_t max_code_length ) { int32_t tree_size = sizeof(huffman_tree_t) + num_max_codes * sizeof(huffman_tree_data_t); huff...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/UI/ardrone_tool_ui.c
// // Inputs specification // rien d'appuyer : 11540000 // start: 11540200 // select: 11540000 // 1 : 11540001 // 2 : 11540002 // 3 : 11540004 // 4 : 11540008 // 5 : 11540010 // 6 : 11540020 // 7 : 11540040 // 8 : 11540080 // x+: 12540000 // x-: 10540000 // y+: 01540000 // y-: 21540000 // // trims // r2 + x+ = 11640080...
mikeadams1/oculus-drone
ffmpeg/libavfilter/vf_delogo.c
/* * Copyright (c) 2002 <NAME> <<EMAIL>> * Copyright (c) 2011 <NAME> * Copyright (c) 2013 <NAME> <<EMAIL>> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; e...
mikeadams1/oculus-drone
drone-sdk/Examples/Android/ardrone/project/jni/opengl_stage.h
<gh_stars>10-100 /* * opengl_stage.h * Test * * Created by <NAME> on 22/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #ifndef _OPENGL_STAGE_H_ #define _OPENGL_STAGE_H_ #include <ardrone_api.h> #include <ardrone_tool/ardrone_tool.h> #include <VP_Api/vp_api_thread_helper.h> #include <VP_Os/vp_o...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/Menus/HUD.h
#include "ConstantsAndMacros.h" #import "ARDrone.h" #import "SettingsMenu.h" typedef void (*control_callback)(float percent); typedef struct Joystick { // Value between -1.0 and 1.0 bool_t can_use_accelero; control_callback up_down; control_callback left_right; } JOYSTICK; typedef struct Controls { JOYSTICK Lef...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/matrix3d.c
<gh_stars>10-100 /** * \brief Matrix 3d implementation * \author <NAME> <<EMAIL>> * \version 1.0 * \date 04/06/2007 * \warning Subject to completion */ #include <Maths/matrix3d.h> #include <Maths/matrices.h> #include <VP_Os/vp_os_malloc.h> #include <math.h> matrix3d_t matrix3d_id = { 1.0f, 0...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Com/linux/vp_com_config_itf.c
<reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Com/linux/vp_com_config_itf.c #include <VP_Os/vp_os_malloc.h> #include <VP_Os/vp_os_print.h> #include <VP_Com/linux/vp_com_config_itf.h> #include <string.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> #include <netinet/in...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Release/ARDroneGeneratedTypes.h
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!! THIS FILE IS GENERATED AUTOMATICALLY, DO NOT CHANGE IT !!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /* * ARDroneGeneratedTypes.h * ARDroneEngine * * Automatically generated. * Copyright 2010 <NAME>. All righ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/UI/ardrone_input.h
#ifndef _ARDRONE_INPUT_H_ #define _ARDRONE_INPUT_H_ #include <VP_Os/vp_os_types.h> #include <ardrone_tool/ardrone_tool.h> typedef struct _input_device_t { char name[MAX_NAME_LENGTH]; C_RESULT (*init)(void); C_RESULT (*update)(void); C_RESULT (*shutdown)(void); } input_device_t; typedef struct _input_state_t...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Testbenches/multiconfiguration/Sources/ardrone_testing_tool.c
/** * @file main.c * @author sy<EMAIL> * @date 2009/07/01 */ #include <ardrone_testing_tool.h> //ARDroneLib #include <ardrone_tool/ardrone_time.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/UI/ardrone_input.h> #include <ardrone_...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Testbenches/navdata_selection/Sources/ardrone_testing_tool.c
/** * @file main.c * @author sy<EMAIL> * @date 2009/07/01 */ #include <ardrone_testing_tool.h> //ARDroneLib #include <ardrone_tool/ardrone_time.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/UI/ardrone_input.h> #include <ardrone_...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/ConstantsAndMacros.h
// // ConstantsAndMacros.h // Constants and macros for opengl view. // // Created by <NAME> on 09/10/30. // Copyright 2009 Parrot SA. All rights reserved. // // Macros #ifndef _CONSTANTS_AND_MACROS_H_ #define _CONSTANTS_AND_MACROS_H_ #include <ardrone_api.h> #include <control_states.h> #include <ardrone_tool/ardrone...
mikeadams1/oculus-drone
drone-sdk/Examples/Win32/sdk_demo/Sources/UI/gamepad.h
/******************************************************************** * * Parts of the DirectX code are from a tutorial by Microsoft * which can be found in the Microsoft DirectX SDK June 2010. * Copyright (c) Microsoft Corporation. All rights reserved. * * * The rest of the code is COPYRIGHT PARROT 2010 *...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/maths.c
/** * \file maths.c * \brief Maths library used by ARDrone * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \version 1.0 */ #include <Maths/maths.h> float32_t f_epsilon = FLT_EPSILON; bool_t f_is_zero( float32_t f ) { bool_t ret; float32_t af; ret = FALSE; af = (float32_t)fabs(...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Com/elinux/vp_com_wlc.c
<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Com/elinux/vp_com_wlc.c<gh_stars>10-100 //#include <network.h> #include <sys/ioctl.h> #include <unistd.h> #include <net/if.h> #include <sys/types.h> #include <sys/socket.h> #include "vp_com_wlc.h" #include <VP_Com/vp_com.h> #include <VP_Os/vp_os_malloc.h> #include <VP_Os/v...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/stream.c
/** * @file my_client.c * @author <NAME> * @date 2009/07/01 */ #include <assert.h> #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #i...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Com/vp_com_socket.c
<gh_stars>10-100 #include <VP_Com/vp_com_socket.h> #include <VP_Com/vp_com_error.h> #include <VP_Os/vp_os_malloc.h> #include <VP_Os/vp_os_print.h> #include <VP_Os/vp_os_signal.h> #include <fcntl.h> #include <errno.h> #ifdef __linux__ #include <sys/socket.h> #include <sys/ioctl.h> #include <netinet/in.h> #include <ne...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VLIB/video_packetizer.c
<gh_stars>10-100 #include <VLIB/video_codec.h> #include <VLIB/video_packetizer.h> #include <VLIB/Platform/video_utils.h> #include <VLIB/Platform/video_config.h> #include <VP_Os/vp_os_malloc.h> C_RESULT video_packetizer_init( video_controller_t* controller ) { // Internal buffer configuration controller->in_stream...
mikeadams1/oculus-drone
drone-sdk/Examples/Android/ardrone/project/jni/app.h
<reponame>mikeadams1/oculus-drone<filename>drone-sdk/Examples/Android/ardrone/project/jni/app.h<gh_stars>10-100 /* * AR Drone demo * * code originally nased on:"San Angeles" Android demo app */ #ifndef APP_H_INCLUDED #define APP_H_INCLUDED #include <stdint.h> #include <sys/types.h> #include <unistd.h> #include <p...
mikeadams1/oculus-drone
drone-sdk/Examples/Android/ardrone/project/jni/navdata.h
#ifndef _NAVDATA_H_ #define _NAVDATA_H_ #include <ardrone_api.h> #include <VP_Os/vp_os_types.h> typedef struct _instance_navdata_t { uint32_t ardrone_state; bool_t flyingState; /// Tells whether ARDrone is flying or not bool_t commandState; /// ??? bool_t comWatchdog; /// Tells if we are loosing communica...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/elinux/vp_os_ltt.h
/* * vp_os_ltt.h * * Created on: Sep 15, 2009 * Author: pierre */ //#define LTT_TRACE #ifndef VP_OS_LTT_H_ #define VP_OS_LTT_H_ #if defined(LTT_TRACE) && defined (USE_ELINUX) #include <ltt-user.h> extern int fd_ltt; # define LTT_START() if (fd_ltt == -1)fd_ltt = trace_open(); # define LTT_STOP() ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage_ffmpeg_recorder.c
/* CODE ADAPATED FOR ARDRONE NAVIGATION FROM : * * Libavformat API example: Output a media file in any supported * libavformat format. The default codecs are used. * * Copyright (c) 2003 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated doc...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_com_stage.h
<gh_stars>10-100 #ifndef _VIDEO_COM_STAGE_H_ #define _VIDEO_COM_STAGE_H_ #include <VP_Api/vp_api.h> #include <VP_Com/vp_com.h> #define VIDEO_MAX_RETRIES 5 typedef struct _video_com_config_t { vp_com_t* com; vp_com_socket_t socket; VP_COM_SOCKET_OPTIONS sockopt; uint32_t buff...
mikeadams1/oculus-drone
drone-sdk/Examples/Android/ardrone/project/jni/control_ack.c
// // control_ack.m // iPhoneDemo // // Created by Mykonos on 20/10/08. // Copyright 2008 Parrot SA. All rights reserved. // #include "control_ack.h" #include "app.h" #include <ardrone_api.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/Control/ardrone_control_ack.h> #undef ARDRONE_CON...
mikeadams1/oculus-drone
ffmpeg/libavcodec/4xm.c
/* * 4XM codec * Copyright (c) 2003 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) a...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/iniparser3.0b/src/iniparser.c
<gh_stars>10-100 /*-------------------------------------------------------------------------*/ /** @file iniparser.c @author <NAME> @date Sep 2007 @version 3.0 @brief Parser for ini files. */ /*--------------------------------------------------------------------------*/ /* $Id: iniparser.c,...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Testbenches/navdata_selection/Sources/UI/gamepad.c
/** * \brief gamepad handling implementation * \author <NAME> <<EMAIL>> * \version 1.0 * \date 04/06/2007 * \warning Subject to completion */ #include <errno.h> #include <fcntl.h> #include <string.h> #include <stddef.h> #include <stdio.h> #include <unistd.h> #include <linux/joystick.h> #include...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/Controllers/MainViewController.h
<filename>drone-sdk/ControlEngine/iPhone/Classes/Controllers/MainViewController.h // // MainViewController.h // ARDroneEngine // // Created by Mykonos on 17/12/09. // Copyright 2009 Parrot SA. All rights reserved. // #include "ConstantsAndMacros.h" #import <UIKit/UIKit.h> #import "HUD.h" #import "SettingsMenu.h" ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api_picture.h
<reponame>mikeadams1/oculus-drone /** * \brief VP Api. Output SDL stage declaration * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \version 2.0 * \date first release 16/03/2007 * \date modification 28/03/2007 */ #ifndef _VP_API_PICTURE_H_ #define _V...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/elinux/vp_os_ltt.c
<reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Os/elinux/vp_os_ltt.c<gh_stars>10-100 #include "vp_os_ltt.h" int fd_ltt=-1;
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/win32/vp_os_signal.c
/** * @file signal.c * @author <EMAIL> * @date 2006/12/15 */ #include "VP_Os/vp_os_signal.h" void vp_os_mutex_init(vp_os_mutex_t *mutex) { InitializeCriticalSection((CRITICAL_SECTION *)mutex); } void vp_os_mutex_destroy(vp_os_mutex_t *mutex) { DeleteCriticalSection((CRITICAL_SECTION *)mutex); } void vp_o...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api.h
/** * @file vp_api.h * @brief VP Api. Pipeline definition * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @version 2.0 * @date first release 16/03/2007 * @date modification 24/05/2007 */ #ifndef _VP_API_INCLUDE_H_...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/AT/ardrone_at_mutex.c
<reponame>mikeadams1/oculus-drone<gh_stars>10-100 /******************************************************************** * COPYRIGHT PARROT 2010 ******************************************************************** * PARROT MODULES *---------------------------------------------...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/mobile_main.h
<filename>drone-sdk/ControlEngine/iPhone/Classes/mobile_main.h /* * mobile_main.h * Test * * Created by <NAME> on 19/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #ifndef _MOBILE_MAIN_H_ #define _MOBILE_MAIN_H_ #include "ConstantsAndMacros.h" typedef enum { ARDRONE_ENGINE_INIT_OK, ARDRONE_...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/maths.h
/** * \file maths.h * \brief Maths library used by ARDrone * \author <NAME> <<EMAIL>> * \version 1.0 */ #ifndef _MATHS_H_ #define _MATHS_H_ #include <VP_Os/vp_os_types.h> #ifndef __USE_GNU #define __USE_GNU #endif // __USE_GNU #include <math.h> #include <float.h> ////////////////////////////////...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os.h
<filename>drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os.h<gh_stars>10-100 /** *************************************************************************** * * Copyright (C) 2007 <NAME>. * * \date First Release 03/01/2007 * \date Last Modified 15/06/2009 ***********************************************************...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Navdata/ardrone_navdata_file.h
<gh_stars>10-100 #ifndef _ARDRONE_NAVDATA_FILE_H_ #define _ARDRONE_NAVDATA_FILE_H_ #include <stdio.h> #include <ardrone_api.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> extern FILE* navdata_file; // For this handler, data is the path where the file will be created // If data is NULL then the file is ...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os_malloc.c
/** * @file malloc.c * @author <EMAIL> * @date 2006/12/19 */ #include <VP_Os/vp_os_malloc.h> #undef calloc #undef malloc #undef memset #undef free #undef realloc void * vp_os_calloc(size_t nmemb, size_t size) { #ifdef DEBUG_MODE void *res = calloc(nmemb, size); assert(res); return (res); #else // ! DEBUG...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_time.c
<gh_stars>10-100 #include <VP_Os/vp_os_malloc.h> #include <ardrone_tool/ardrone_time.h> #ifndef _WIN32 #include <sys/time.h> #else #include <sys/timeb.h> static int gettimeofday (struct timeval *tp, void *tz) { struct _timeb timebuffer; _ftime (&timebuffer); tp->tv_sec = (long)timebuffer.time; tp->tv...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Common/navdata_common.h
/** * \file navdata_common.h * \brief Common navdata configuration * \author <NAME> <<EMAIL>> */ #ifndef _NAVDATA_COMMON_H_ #define _NAVDATA_COMMON_H_ /*------------------------------------------ NAVDATA STRUCTURES DECLARATIONS ---------------------------------------------------------------*/ #includ...
mikeadams1/oculus-drone
drone-sdk/Examples/Multiplatform/Protocol/VP_Os/vp_os_types.h
/** * \brief VP OS. Types declaration. * \brief These types are used to provide clean types declaration for portability between OSes * \author <NAME> <<EMAIL>> * \version 1.0 * \date first release 19/12/2006 * \date modification 26/03/2007 */ #ifndef _VP_SDK_TYPES_H_ #define _VP_SDK_TYPE...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/sdk_demo/Sources/ardrone_testing_tool.c
<reponame>mikeadams1/oculus-drone /** * @file main.c * @author sy<EMAIL> * @date 2009/07/01 */ #include <ardrone_testing_tool.h> //ARDroneLib #include <ardrone_tool/ardrone_time.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/UI/a...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Protocol/navdata.c
/** * @file my_client.c * @author <NAME> * @date 2009/07/01 */ #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #i...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Protocol/at_cmds.c
/** * @file my_client.c * @author <NAME> * @date 2009/07/01 */ #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #...
mikeadams1/oculus-drone
ffmpeg/libavcodec/exr.c
<reponame>mikeadams1/oculus-drone /* * OpenEXR (.exr) image decoder * Copyright (c) 2009 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Navigation/Sources/ihm/ihm_stages_o_gtk.h
#ifndef _IHM_STAGES_O_GTK_H #define _IHM_STAGES_O_GTK_H #include <config.h> #include <VP_Api/vp_api_thread_helper.h> #ifdef PC_USE_VISION # include <Vision/vision_tracker_engine.h> # include <Vision/vision_patch_detect.h> # include <VLIB/video_controller.h> # include <ardrone_tool/Video/vlib_stage_decode.h> #e...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Control/ardrone_control_soft_update.h
<gh_stars>10-100 #ifndef _ARDRONE_CONTROL_SOFT_UPDATE_H_ #define _ARDRONE_CONTROL_SOFT_UPDATE_H_ #include <ardrone_tool/Control/ardrone_control.h> #include <stdio.h> typedef enum _ardrone_control_soft_update_error_state_t { FIRMWARE_NO_ERR, FIRMWARE_FILE_ERR, FIRMWARE_VERSION_ERR } ardrone_control_soft_update_err...
mikeadams1/oculus-drone
ffmpeg/libavcodec/x86/videodsp_init.c
/* * Copyright (C) 2002-2012 <NAME> * Copyright (C) 2012 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Navigation/Sources/ihm/ihm_vision.h
#ifndef _IHM_VISION_H #define _IHM_VISION_H extern char label_vision_state_value[32]; extern GtkLabel *label_vision_values; void ihm_ImageWinDestroy( GtkWidget *widget, gpointer data ); void create_image_window( void ); #endif // _IHM_VISION_H
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage.h
/* * video_stage.h * Test * * Created by <NAME> on 22/02/10. * Copyright 2010 Parrot SA. All rights reserved. * */ #ifndef _VIDEO_STAGE_H_ #define _VIDEO_STAGE_H_ #include <VP_Api/vp_api.h> #include <VP_Api/vp_api_error.h> #include <VP_Api/vp_api_stage.h> #include <VP_Api/vp_api_picture.h> #include <VP_Os/...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Common/ardrone_common_config.h
/** * \file ardrone_common_config.h * \brief Ardrone Specific data for configuration * \author <NAME> <<EMAIL>> * \version 1.0 */ #ifndef _ARDRONE_COMMON_CONFIG_H_ #define _ARDRONE_COMMON_CONFIG_H_ #define CURRENT_NUM_VERSION_CONFIG 1 #define CAMIF_NUM_BUFFERS 2 #define COM_INPUT_LA...
mikeadams1/oculus-drone
ffmpeg/libavcodec/g726.c
/* * G.726 ADPCM audio codec * Copyright (c) 2004 <NAME> * * This is a very straightforward rendition of the G.726 * Section 4 "Computational Details". * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/Maths/filter.c
<reponame>mikeadams1/oculus-drone<gh_stars>10-100 /** * \file filter.c * \brief 1st and 2nd order filter implementation * \author <NAME> <<EMAIL>> * \version 1.0 */ #include <Maths/maths.h> #include <Maths/filter.h> #include <math.h> void filter_init(uint32_t n, float32_t *old_input, float32_t init...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/UI/ardrone_input.c
#include <VP_Os/vp_os_print.h> #include <VP_Os/vp_os_assert.h> #include <ardrone_tool/UI/ardrone_input.h> #include <ardrone_tool/UI/ardrone_tool_ui.h> static input_device_t* devices[MAX_NUM_DEVICES]; static input_state_t input_state = { 0 }; C_RESULT ardrone_tool_input_add( input_device_t* device ) { C_RESULT res...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Common/navdata_keys.h
#ifndef NAVDATA_OPTION_DEMO #define NAVDATA_OPTION_DEMO(x,y,z) #endif #ifndef NAVDATA_OPTION #define NAVDATA_OPTION(x,y,z) #endif #ifndef NAVDATA_OPTION_CKS #define NAVDATA_OPTION_CKS(x,y,z) #endif NAVDATA_OPTION_DEMO ( navdata_demo_t , navdata_demo , NAVDATA_DEMO_TAG) NAVDATA_OPTION( navdata_time_t, na...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Navdata/ardrone_general_navdata.c
#include <stdio.h> #include <sys/time.h> #include <ardrone_api.h> #include <ardrone_tool/ardrone_tool.h> #include <ardrone_tool/ardrone_tool_configuration.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> #include <ardrone_tool/Navdata/ardrone_general_navdata.h> #include <utils/ardrone_gen_ids.h> static MULT...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_frame_pipe.h
<reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_frame_pipe.h #ifndef _VP_STAGES_FRAME_PIPE_H_ #define _VP_STAGES_FRAME_PIPE_H_ #include <VP_Api/vp_api.h> #include <VP_Api/vp_api_picture.h> /////////////////////////////////////////////// // TYPEDEFS typedef enum _BUFFER_PI...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Navigation/Sources/common/mobile_main.c
<gh_stars>10-100 /** * @file mobile_main.c * @author <EMAIL> & <EMAIL> * @date 2006/05/01 */ #include <ATcodec/ATcodec_api.h> #include <ardrone_tool/ardrone_tool.h> #include <ardrone_tool/Control/ardrone_control.h> #include <ardrone_tool/Navdata/ardrone_navdata_client.h> #include <ardrone_tool/Com/config_com.h> ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VLIB/video_controller.h
<gh_stars>10-100 #ifndef _VIDEO_CONTROLLER_H_ #define _VIDEO_CONTROLLER_H_ #include <VP_Os/vp_os_types.h> #include <VP_Api/vp_api_picture.h> #include <VLIB/video_picture.h> #include <VLIB/video_gob.h> enum { VIDEO_ENCODE = 1, VIDEO_DECODE = 2 }; enum { VIDEO_PICTURE_INTRA = 0, // Picture is a reference fra...
mikeadams1/oculus-drone
drone-sdk/Examples/iPhone/FreeFlight/Classes/ESRenderer.h
// // ESRenderer.h // FreeFlight // // Created by <NAME> on 16/10/09. // Copyright Parrot SA 2009. All rights reserved. // #import <QuartzCore/QuartzCore.h> #import <OpenGLES/EAGL.h> #import <OpenGLES/EAGLDrawable.h> #import "ARDrone.h" @protocol ESRenderer <NSObject> - (void) render:(ARDrone*)drone; - (BOOL) r...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api_thread_helper.c
<gh_stars>10-100 /** * \brief VP Api. Thread utility. * \author <NAME> <<EMAIL>> * \version 1.0 * \date first release 19/12/2006 * \date modification 26/03/2007 */ #include <VP_Api/vp_api_thread_helper.h> #include <VP_Api/vp_api_error.h> #include <VP_Os/vp_os_print.h> #include <string.h> int...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_io_buffer.h
/** * \brief VP Stages. Buffer stage declaration * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \version 2.0 * \date first release 16/03/2007 * \date modification 19/03/2007 */ #ifndef _VP_STAGES_IO_BUFFER_H_ #define _VP_STAGES_IO_BUFFER_H_ /** *...
mikeadams1/oculus-drone
drone-sdk/Examples/Win32/sdk_demo/Sources/ardrone_tool_win32.c
<reponame>mikeadams1/oculus-drone /******************************************************************** * COPYRIGHT PARROT 2010 ******************************************************************** * PARROT - A.R.Drone SDK Windows Client Example *---------------------------------------------...
mikeadams1/oculus-drone
drone-sdk/Examples/Linux/Navigation/Sources/ihm/ihm_vision.c
<gh_stars>10-100 /* * @ihm_vision.c * @author marc-olivier.<EMAIL> * @date 2007/07/27 * * @author <EMAIL> * @date 2010/10/18 * ihm vision source file * */ #include <pthread.h> #include <gtk/gtk.h> #include <ardrone_api.h> #ifdef PC_USE_VISION # include <Vision/vision_tracker_engine.h> #endif #include ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_io_com.c
<reponame>mikeadams1/oculus-drone /** * \brief VP Stages. Com stage declaration * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> * \version 2.0 * \date first release 16/03/2007 * \date modification 19/03/2007 */ #include <VP_Stages/vp_stages_io_com.h> #...
mikeadams1/oculus-drone
ffmpeg/libavcodec/lclenc.c
<reponame>mikeadams1/oculus-drone<gh_stars>10-100 /* * LCL (LossLess Codec Library) Codec * Copyright (c) 2002-2004 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free ...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api_supervisor.c
/** * @file vp_api_supervisor.c * @brief VP Api. Pipeline supervisor */ /////////////////////////////////////////////// // INCLUDES #include <VP_Api/vp_api_supervisor.h> #include <VP_Api/vp_api_config.h> #include <VP_Api/vp_api.h> #include <VP_Os/vp_os_print.h> #include <VP_Os/vp_os_malloc.h> #include <V...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VP_SDK/VP_Os/parrotos/vp_os_thread.c
<reponame>mikeadams1/oculus-drone<gh_stars>10-100 #include <stdarg.h> #include <malloc.h> #include <VP_Os/vp_os_thread.h> typedef struct _pthread_data_t { uint32_t free; // bit array representing thread array allocation state (0 means free) SUP_THREAD thread[32]; // thread array struct _pthread...
mikeadams1/oculus-drone
ffmpeg/libavfilter/buffersrc.c
<gh_stars>10-100 /* * Copyright (c) 2008 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your optio...
mikeadams1/oculus-drone
ffmpeg/libavfilter/vf_interlace.c
/* * Copyright (c) 2003 <NAME> <<EMAIL>> * Copyright (c) 2010 <NAME> * Copyright (c) 2011 <NAME> * Copyright (c) 2013 <NAME> <<EMAIL>> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * th...
mikeadams1/oculus-drone
drone-sdk/ARDroneLib/VLIB/Stages/vlib_stage_encode.c
/** * \brief vlib Stage * \author <NAME> <<EMAIL>> * \version 1.0 * \date first release 06/12/2007 */ #include <VP_Os/vp_os_malloc.h> #include <VP_Os/vp_os_print.h> #include <VLIB/Stages/vlib_stage_encode.h> #include <VLIB/video_packetizer.h> ///*****************************************************...
mikeadams1/oculus-drone
drone-sdk/ControlEngine/iPhone/Classes/Menus/SettingsMenu.h
#include "ConstantsAndMacros.h" #import "ARDrone.h" typedef enum CONTROL_MODE { CONTROL_MODE3, CONTROL_MODE2, CONTROL_MODE1, CONTROL_MODE4, CONTROL_MODE_MAX, } CONTROL_MODE; typedef struct { BOOL logsActivated; } SettingsParams; @protocol SettingsMenuDelegate<NSObject> - (void)acceleroValueChanged:(bool_t)...