repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
connorcl/genetic-simulation | src/genetics/BehaviourNetLayer.h | <reponame>connorcl/genetic-simulation
#pragma once
#include <vector>
#include <random>
namespace GeneticSimulation
{
// A fully connected neural network layer plus a sigmoid/tanh activation function layer,
// which forms part of a neural network used for determining an organism's behaviour
class BehaviourNetLayer
... |
connorcl/genetic-simulation | src/engine/SimulationObjectPool.h | #pragma once
#include "SimulationObject.h"
#include "../helper/ConcurrentQueue.h"
#include <type_traits>
#include <vector>
namespace GeneticSimulation
{
// class template for a pool of simulation objects
template<class T>
class SimulationObjectPool
{
// ensure T is derived class of SimulationObject
static_ass... |
connorcl/genetic-simulation | src/Population.h | #pragma once
#include "engine/SimulationObjectPool.h"
#include "Organism.h"
#include "Config.h"
#include "engine/SimulationArea.h"
#include "genetics/StandardizeParams.h"
#include <random>
namespace GeneticSimulation
{
// A population of organisms
class Population : public SimulationObjectPool<Organism>
{
public:... |
connorcl/genetic-simulation | src/Simulation.h | #pragma once
#include "Planet.h"
#include "engine/SimulationArea.h"
#include "ConsumableResourcePool.h"
#include "Population.h"
#include "Config.h"
#include "helper/SignalLink.h"
#include <memory>
#include <SFML/Graphics.hpp>
namespace GeneticSimulation
{
// encapsulates the entire simulation
class Simulation
{
p... |
connorcl/genetic-simulation | src/Organism.h | <reponame>connorcl/genetic-simulation
#pragma once
#include "engine/SimulationObject.h"
#include "engine/SimulationArea.h"
#include "Config.h"
#include "genetics/Genotype.h"
#include "genetics/Phenotype.h"
#include "SensoryData.h"
#include "Planet.h"
#include "ConsumableResourcePool.h"
#include <random>
#include <vect... |
connorcl/genetic-simulation | src/ConsumableResource.h | #pragma once
#include "engine/SimulationObject.h"
#include "engine/SimulationArea.h"
#include <SFML/Graphics.hpp>
namespace GeneticSimulation
{
// A simulation object representing a consumable
// resource item such as food or water
class ConsumableResource : public SimulationObject
{
public:
// constructor wh... |
connorcl/genetic-simulation | src/ConsumableResourcePool.h | #pragma once
#include "engine/SimulationObjectPool.h"
#include "ConsumableResource.h"
#include "engine/SimulationArea.h"
#include <random>
namespace GeneticSimulation
{
// A pool of consumable resources
class ConsumableResourcePool : public SimulationObjectPool<ConsumableResource>
{
public:
// constructor
Co... |
connorcl/genetic-simulation | src/SensoryData.h | #pragma once
#include <vector>
namespace GeneticSimulation
{
// Stores the sensory data of an organism and makes
// this available in original and scaled [-1, 1] form
class SensoryData
{
public:
// constructor
SensoryData();
// returns hunger value
float get_hunger();
// returns thirst value
floa... |
connorcl/genetic-simulation | src/genetics/genetic_helper.h | #pragma once
#include <vector>
#include <random>
namespace GeneticSimulation
{
// fill a vector with random normal values
template<typename T>
void randomize_normal(std::vector<T>& vec, T mean, T sigma, std::default_random_engine& rng)
{
// create normal distribution
std::normal_distribution<T> dist_norm(mean... |
connorcl/genetic-simulation | src/genetics/PhysicalTrait.h | <filename>src/genetics/PhysicalTrait.h
#pragma once
#include "StandardizeParams.h"
namespace GeneticSimulation
{
// A physical trait which forms part of an organism's phenotype
class PhysicalTrait
{
public:
// constructor which takes a value and the parameters used to standardize values
PhysicalTrait(float v... |
connorcl/genetic-simulation | src/helper/SignalLink.h | <gh_stars>0
#pragma once
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/mutex.hpp>
namespace GeneticSimulation
{
// A synchronization object which enables one or more threads to
// independently wait for one or more threads to signal before continuing
class SignalLink
{
public:
// const... |
connorcl/genetic-simulation | src/helper/benchmark_helper.h | <filename>src/helper/benchmark_helper.h<gh_stars>0
#pragma once
#include <vector>
#include <string>
namespace GeneticSimulation
{
// write benchmark results to file
void write_benchmark_results(const std::vector<unsigned long long>& times,
const std::string& header, const std::string& filename, const std::string&... |
connorcl/genetic-simulation | src/engine/SimulationObject.h | #pragma once
#include "SimulationArea.h"
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
namespace GeneticSimulation
{
// Abstract base class for an object that is part of a pool
// of similar objects and exists within a 2D simulation area
class SimulationObject
{
public:
// constructor which takes t... |
connorcl/genetic-simulation | src/helper/ConcurrentQueue.h | #pragma once
#include <queue>
#include <mutex>
namespace GeneticSimulation
{
// A simple extension of a queue allowing thread-safe pushes and pops
template<typename T>
class ConcurrentQueue
{
public:
// thread-safe push
void safe_push(T item) {
// lock mutex
std::scoped_lock lock(mx);
// push item
... |
connorcl/genetic-simulation | src/genetics/Phenotype.h | <filename>src/genetics/Phenotype.h<gh_stars>0
#pragma once
#include "StandardizeParams.h"
#include "PhysicalTrait.h"
namespace GeneticSimulation
{
// The physical traits of an organism which are coded for in its genotype
class Phenotype
{
public:
// constructor which takes standardization parameters for each t... |
connorcl/genetic-simulation | src/genetics/StandardizeParams.h | <gh_stars>0
#pragma once
namespace GeneticSimulation
{
// parameters for standardizing a value (mean and standard deviation)
struct StandardizeParams
{
// constructor which takes mean and standard deviation
StandardizeParams(float mean, float sigma);
// parameters
float mean;
float sigma;
};
} |
connorcl/genetic-simulation | src/helper/platform.h | <reponame>connorcl/genetic-simulation
#pragma once
// enable C++ AMP GPU support on Windows only
#if defined(_WIN32)
#define GPU_SUPPORT 1
#elif defined(_WIN64)
#define GPU_SUPPORT 1
#endif |
connorcl/genetic-simulation | src/Planet.h | #pragma once
#include "helper/platform.h"
#include "Config.h"
#include <vector>
namespace GeneticSimulation
{
// precomputes and stores planetary surface temperature
class Planet
{
public:
// default constructor
Planet();
// precompute temperatures
void precompute_temperatures(const Config& config, bool... |
connorcl/genetic-simulation | src/Config.h | #pragma once
#include "helper/platform.h"
#include <string>
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
namespace GeneticSimulation
{
// stores simulation configuration options
class Config
{
public:
// initialize config from... |
connorcl/genetic-simulation | src/helper/color.h | #pragma once
#include <SFML/Graphics/Color.hpp>
namespace GeneticSimulation
{
// calculate a gradient between two colors
sf::Color calculate_gradient(const sf::Color& color1, const sf::Color& color2, float p);
// calculate a gradient between three colors
sf::Color calculate_double_gradient(const sf::Color& color... |
connorcl/genetic-simulation | src/genetics/Genotype.h | <reponame>connorcl/genetic-simulation<gh_stars>0
#pragma once
#include "BehaviourNet.h"
#include "Phenotype.h"
#include <random>
#include <vector>
#include <mutex>
namespace GeneticSimulation
{
// The genetic information of an organism which is
// expressed to produce behaviour and physical traits
class Genotype
... |
connorcl/genetic-simulation | src/engine/SimulationArea.h | #pragma once
#include <string>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
namespace GeneticSimulation
{
// A 2-dimensional simulation space which is viewed via a graphical window
class SimulationArea
{
public:
// constructor
SimulationArea(sf::Vector2u area_sz, sf::Vector2u window_sz,
const ... |
connorcl/genetic-simulation | src/genetics/BehaviourNet.h | <reponame>connorcl/genetic-simulation<filename>src/genetics/BehaviourNet.h
#pragma once
#include "BehaviourNetLayer.h"
#include <vector>
#include <random>
namespace GeneticSimulation
{
// A simple feedforward artificial neural network with two
// hidden layers which determines an organism's behaviour
class Behavio... |
swank-rats/image-processing-tests | WebCamPerformance/RecorderThread.h | <reponame>swank-rats/image-processing-tests
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv/cv.h>
#include <sys/timeb.h>
#include <Poco\Thread.h>
#include <Poco\RunnableAdapter.h>
#include <Poco\Activity.h>
#i... |
swank-rats/image-processing-tests | MJPEGPerformanceTest/StreamLatencyMeasurementTest.h | <filename>MJPEGPerformanceTest/StreamLatencyMeasurementTest.h
#pragma once
#include <string.h>
#include <Poco\Uri.h>
#include <Poco\Task.h>
#include <Poco\Net\SocketAddress.h>
#include <Poco\Net\StreamSocket.h>
#include <Poco\Net\SocketStream.h>
using std::string;
using Poco::URI;
using Poco::Task;
using Po... |
swank-rats/image-processing-tests | WebCamPerformance/RecorderTwoThreads.h | <gh_stars>0
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv/cv.h>
#include <sys/timeb.h>
#include <Poco\Thread.h>
#include <Poco\RunnableAdapter.h>
#include <Poco\Activity.h>
#include <Poco\Logger.h>
#include ... |
swank-rats/image-processing-tests | WebCamPerformance/RecorderActivity.h | <gh_stars>0
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv/cv.h>
#include <sys/timeb.h>
#include <Poco\Thread.h>
#include <Poco\Activity.h>
#include <Poco\Logger.h>
#include <Poco\RWLock.h>
#include <Poco\Sto... |
swank-rats/image-processing-tests | WebSocketTest/RequestHandlerFactory.h | #pragma once
#include <iostream>
#include <string>
#include <Poco\Net\HTTPRequestHandlerFactory.h>
#include <Poco\Net\HTTPServerRequest.h>
#include <Poco\Net\HTTPRequestHandler.h>
#include <Poco\Net\HTTPResponse.h>
#include <Poco\Net\HTTPServerResponse.h>
#include <Poco\Net\WebSocket.h>
#include <Poco\Except... |
richjoyce/LeapRecorder | LeapRecorder.h | #ifndef LEAPRECORDER_H
#define LEAPRECORDER_H
#include <vector>
#include <mutex>
#include "Leap.h"
class LeapRecorder : public Leap::Listener
{
public:
enum LeapRecorderState {
STATE_IDLE,
STATE_RECORDING,
STATE_PLAY,
STATE_PAUSE,
};
LeapRecorder() : state(STATE_IDLE), loo... |
johnpatek/valve | src/include/valve/common.h | <filename>src/include/valve/common.h
#ifndef __VALVE_COMMON_H__
#define __VALVE_COMMON_H__
#include <fstream>
#include <functional>
#include <iostream>
#include <iomanip>
#include <map>
#include <thread>
#include <vector>
#include <signal.h>
#include <cstdint>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sy... |
johnpatek/valve | src/include/protocol/message.h | #ifndef __PROTOCOL_MESSAGE_H__
#define __PROTOCOL_MESSAGE_H__
#include <valve/common.h>
namespace protocol
{
enum commands
{
OPEN,
CLOSE,
STAT,
LOG
};
class request
{
public:
request();
request(int command);
request(const uint8_t * const data, size_t size);
request(const reque... |
johnpatek/valve | src/valved/digital_pin.h | <reponame>johnpatek/valve<filename>src/valved/digital_pin.h
#include <rpigpio/rpigpio.h>
class digital_pin
{
public:
digital_pin(int pin, bool simulate);
digital_pin(const digital_pin& copy) = delete;
digital_pin(digital_pin&& copy) = default;
~digital_pin();
bool get() const;
void set(bool v... |
johnpatek/valve | src/include/valve/controller.h | <reponame>johnpatek/valve<filename>src/include/valve/controller.h<gh_stars>0
#ifndef __VALVE_CONTROLLER_H__
#define __VALVE_CONTROLLER_H__
#include "common.h"
#include <protocol/message.h>
namespace valve
{
using response_callback_type = std::function<void(bool,const std::string&)>;
class controller
{
public:
c... |
johnpatek/valve | src/include/valve/host.h | <gh_stars>0
#ifndef __VALVE_HOST_H__
#define __VALVE_HOST_H__
#include "common.h"
#include <protocol/message.h>
namespace valve
{
using request_callback_type = std::function<void(bool&,std::string&)>;
using open_callback_type = request_callback_type;
using close_callback_type = request_callback_type;
using stat_callb... |
intel/opa-psm2 | include/linux-i386/sysdep.h | <reponame>intel/opa-psm2<filename>include/linux-i386/sysdep.h<gh_stars>10-100
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you ca... |
intel/opa-psm2 | ptl_ips/ips_proto_expected.c | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2021 <NAME>.
Copyright(c) 2016 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the ter... |
intel/opa-psm2 | psm_mq_utils.c | <reponame>intel/opa-psm2<filename>psm_mq_utils.c<gh_stars>10-100
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2021 Cornelis Networks.
Copyright(c) 2015 Intel Corporation.
This progra... |
intel/opa-psm2 | include/opa_debug.h | <filename>include/opa_debug.h
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the t... |
intel/opa-psm2 | ptl_am/am_reqrep_shmem.c | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2021 <NAME>.
Copyright(c) 2016 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the ter... |
intel/opa-psm2 | psm2_hal.h | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2017 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU G... |
intel/opa-psm2 | ptl_am/ptl.c | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2021 <NAME>.
Copyright(c) 2016 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the ter... |
sweemeng/tflite-micro-slide-controller | src/model.h | <gh_stars>0
const unsigned char model[] = {
0x1c, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x14, 0x00, 0x20, 0x00,
0x04, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00,
0x18, 0x00, 0x1c, 0x00, 0x14, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x18, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0xb0... |
sweemeng/tflite-micro-slide-controller | lib/tensorflow_lite/src/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ActivationFunctions/arm_relu6_s8.c | /*
* Copyright (C) 2010-2019 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.... |
sweemeng/tflite-micro-slide-controller | lib/tensorflow_lite/src/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ConvolutionFunctions/arm_depthwise_conv_3x3_s8.c | <reponame>sweemeng/tflite-micro-slide-controller<gh_stars>0
/*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
... |
sweemeng/tflite-micro-slide-controller | lib/tensorflow_lite/src/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/DSP/Include/dsp/distance_functions.h | /******************************************************************************
* @file distance_functions.h
* @brief Public header file for CMSIS DSP Library
* @version V1.9.0
* @date 20. July 2020
******************************************************************************/
/*
* Copyright (c) 2010... |
sweemeng/tflite-micro-slide-controller | lib/tensorflow_lite/src/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ActivationFunctions/arm_relu_q7.c | /*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/ATcodec/ATcodec_Sorted_List.c | <gh_stars>10-100
/**
* @file ATcodec_Sorted_List.c
* @author a<EMAIL>
* @date 2007/01/30
*/
#include "VP_Os/vp_os_assert.h"
#include "VP_Os/vp_os_malloc.h"
#include "VP_Os/vp_os_types.h"
#include "ATcodec_Sorted_List.h"
#define ATCODEC_MAGIC_NUMBER 0xA7C00DEC
typedef struct _ATcodec_Sorted_List_header_
{
uin... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/navdata_client/navdata_ihm.c | <filename>drone-sdk/Examples/Linux/Navigation/Sources/navdata_client/navdata_ihm.c
#include <string.h>
#include <VP_Os/vp_os_malloc.h>
#include <VP_Os/vp_os_print.h>
#include <config.h>
#include "common/common.h"
#include "ihm/ihm.h"
#include "ihm/ihm_vision.h"
#include "ihm/ihm_stages_o_gtk.h"
#include "ihm/view_dro... |
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/opengl_stage.c | /*
* opengl_stage.c
* Test
*
* Created by <NAME> on 22/02/10.
* Copyright 2010 <NAME>. All rights reserved.
*
*/
#include "opengl_stage.h"
#include "app.h"
#include <android/log.h>
static opengl_video_stage_config_t opengl_video_config;
const vp_api_stage_funcs_t opengl_video_stage_funcs = {
(vp_api_stage... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Protocol/app.h | <filename>drone-sdk/Examples/Linux/Protocol/app.h
/*
* 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 <pthread.h>
/* native video stream dimensions */
#define VIDEO_... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_yuv2rgb.c | /**
* @file vp_stages_yuv2rgb.c
* @brief VP Stages. YUV to RGB converter stage declaration
*/
#ifdef _INCLUDED_FOR_DOXYGEN_
#else // ! _INCLUDED_FOR_DOXYGEN_
///////////////////////////////////////////////
// INCLUDES
#include <VP_Stages/vp_stages_yuv2rgb.h>
#include <VP_Api/vp_api_config.h>
#include <VP_Api/... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VLIB/video_picture.c | <reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/VLIB/video_picture.c
#include <VP_Os/vp_os_print.h>
#include <VLIB/Platform/video_utils.h>
#include <VLIB/video_picture.h>
#include <VP_Os/vp_os_malloc.h>
#ifndef HAS_VIDEO_BLOCKLINE_TO_MACRO_BLOCKS
// Convert a 8x8 block of 8 bits data to a 8x8 block o... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/UI/gamepad.h | <reponame>mikeadams1/oculus-drone
#ifndef _GAMEPAD_H_
#define _GAMEPAD_H_
#include "UI/ui.h"
#define GAMEPAD_LOGICTECH_ID 0x046dc21a
typedef enum {
PAD_X,
PAD_Y
} PAD_AXIS;
typedef enum {
PAD_AG = 0,
PAD_AB,
PAD_AD,
PAD_AH,
PAD_L1,
PAD_R1,
PAD_L2,
PAD_R2,
PAD_SELECT,
PAD_START,
PAD_NUM_BUT... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Classes/wifi.h | /*
* wifi.h
* ARDroneEngine
*
* Created by f.dhaeyer on 30/03/11.
* Copyright 2011 Parrot SA. All rights reserved.
*
*/
#ifndef _WIFI_H_
#define _WIFI_H_
extern char iphone_mac_address[];
void get_iphone_mac_address(const char *itfName);
#endif // _WIFI_H_
|
mikeadams1/oculus-drone | ffmpeg/libavfilter/af_silencedetect.c | /*
* Copyright (c) 2012 <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 Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any ... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/ihm/view_drone_attitude.h |
#ifndef VIEW_DRONE_ATTITUDE_H
#define VIEW_DRONE_ATTITUDE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#include <gtk/gtk.h>
#define START_BUTTON_DA_SIZE 18
#ifdef USE_ARDRONE_VICON
#define VICON_BUTTON_DA_SIZE 18
#endif
void set_control_sta... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Api/vp_api_stage.h | <reponame>mikeadams1/oculus-drone<gh_stars>10-100
/**
* @file vp_api_stage.h
* @brief VP Api. Stages definition
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @version 2.0
* @date first release 16/03/2007
* @date mo... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Common/autoconf.h | <gh_stars>10-100
/*
* Automatically generated C config: don't edit
* Linux kernel version:
* Thu Nov 5 18:06:01 2009
*/
#define AUTOCONF_INCLUDED
#define PAL_TRACE_THREAD_VAL 0
#define PAL_ASSERT 1
#define MODIF_VERSION_NUMBER 0
#define PAL_BUTTON_LONG_PRESS_TIME 2000
#define PAL_BUTTON_DRIVER 1
#define PAL_I2C_DR... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Classes/OpenGLVideo.h | /**
* @file OpenGLVideo.h
*
* Copyright 2009 Parrot SA. All rights reserved.
* @author <NAME>
* @date 2009/10/26
*/
#import "OpenGLSprite.h"
@class OpenGLSprite;
@interface OpenGLVideo : OpenGLSprite {
}
- (id)initWithPath:(NSString *)path withScreenSize:(CGSize)size;
- (void)drawSelf;
@end
// Public funct... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Release/ARDroneGeneratedCommandIn.h | <filename>drone-sdk/ControlEngine/iPhone/Release/ARDroneGeneratedCommandIn.h
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!! THIS FILE IS GENERATED AUTOMATICALLY, DO NOT CHANGE IT !!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/*
* ARDroneGeneratedCommandIn.h
* ... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VLIB/Stages/vlib_stage_decode.c | #include <VP_Os/vp_os_malloc.h>
#include <VP_Os/vp_os_print.h>
#include <VLIB/Stages/vlib_stage_decode.h>
#define FRAME_MODE_BUFFER_SIZE 256
static video_stream_t stream;
const vp_api_stage_funcs_t vlib_decoding_funcs = {
(vp_api_stage_handle_msg_t) NULL,
(vp_api_stage_open_t) vlib_stage_decoding_open,
(vp_ap... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_o_sdl.c | <reponame>mikeadams1/oculus-drone<filename>drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_o_sdl.c
/**
* \brief VP Stages. Output SDL stage declaration
* \author <NAME> <<EMAIL>>
* \author <NAME> <<EMAIL>>
* \author <NAME> <<EMAIL>>
* \version 2.0
* \date first release 16/03/2007
* \date ... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/ihm/ihm.c | /*
* @ihm.c
* @author <EMAIL>
* @date 2006/11/08
*
* ihm thread main source file
* original version by <NAME>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <fcntl.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <cur... |
mikeadams1/oculus-drone | drone-sdk/Examples/Multiplatform/Protocol/VP_Os/win32/vp_os_signal_dep.h | /**
* \brief OS Api for video sdk. Public definitions.
* \author <NAME> <<EMAIL>>
* \author <NAME> <<EMAIL>>
* \version 2.0
* \date 2006/12/15
*/
#ifndef _SIGNAL_INCLUDE_OS_DEP_
#define _SIGNAL_INCLUDE_OS_DEP_
#include <VP_Os/vp_os.h>
typedef CRITICAL_SECTION vp_os_mutex_t;
typedef CRITICAL_S... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/Maths/matrices.c | <filename>drone-sdk/ARDroneLib/Soft/Lib/Maths/matrices.c<gh_stars>10-100
#include <VP_Os/vp_os_assert.h>
#include <Maths/matrices.h>
#include <Maths/maths.h>
const matrix33_t matrix_id3 = { 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f };
const vector31_t vector31_zero = { { { 0.0f, 0.0f, 0.0f } } };
const ve... |
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/video.c | /*
* AR Drone demo
*
* OpenGL video rendering
*/
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <assert.h>
#include <GLES/gl.h>
#include <GLES/glext.h>
#include "app.h"
#include "opengl_stage.h"
static uint8_t *pixbuf = NULL;
static GLuint texture;
static long otick = 0;
static int s... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_tool.h | <filename>drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_tool.h
#ifndef _ARDRONE_TOOL_H_
#define _ARDRONE_TOOL_H_
#include <ardrone_api.h>
#include <VP_Os/vp_os_types.h>
#include <config.h>
#define ARDRONE_REFRESH_MS 20
#define MAX_NAME_LENGTH 255
#define MAX_NUM_DEVICES 10
#define MAX... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Release/ARDroneTypes.h | /*
* ARDroneTypes.h
* ARDroneEngine
*
* Created by <NAME> on 21/05/10.
* Copyright 2010 Parrot SA. All rights reserved.
*
*/
#ifndef _ARDRONE_TYPES_H_
#define _ARDRONE_TYPES_H_
#include "ARDroneGeneratedTypes.h"
/**
* Define the command identifiers from drone to Game Engine
*/
typedef enum {
ARDRONE_COMM... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Common/control_states.h | <gh_stars>10-100
/**
* \file control_states.h
* \brief Control states declaration for control loop & ihm display
* \author <NAME> <<EMAIL>>
* \version 1.0
*/
#ifndef _CONTROL_STATES_H_
#define _CONTROL_STATES_H_
#ifdef CTRL_STATES_STRING
typedef char ctrl_string_t[32];
#endif
// Macros to customiz... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/UI/ardrone_ini.h | #ifndef _ARDRONE_INI_H_
#define _ARDRONE_INI_H_
#include <glib.h>
#include <libudev.h>
#include <linux/joystick.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <glib.h>
#include <sys/types.h>
#include <dirent.h>
#incl... |
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/navdata.c | #include "navdata.h"
#include "app.h"
#include <control_states.h>
#include <ardrone_tool/Navdata/ardrone_navdata_file.h>
#include <ardrone_tool/Navdata/ardrone_navdata_client.h>
#include <VP_Os/vp_os_signal.h>
instance_navdata_t inst_nav;
vp_os_mutex_t inst_nav_mutex;
static inline C_RESULT ardrone_navdata_init( voi... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/Maths/matrices.h | <filename>drone-sdk/ARDroneLib/Soft/Lib/Maths/matrices.h<gh_stars>10-100
/**
* \file matrices.h
* \brief Matrices library used by ARDrone
* \author <NAME> <<EMAIL>>
* \version 1.0
*/
#ifndef _MATRICES_H_
#define _MATRICES_H_
#include <VP_Os/vp_os_types.h>
typedef struct _matrix33_t
{
float32_t m... |
mikeadams1/oculus-drone | ffmpeg/ffmpeg-hack.h | <reponame>mikeadams1/oculus-drone
#ifndef _FFMPEG_HACK_H
#define _FFMPEG_HACK_H
void runHackThread(void *data);
void setHackCallback(void (*callback)(char **toSend, void *data));
#endif |
mikeadams1/oculus-drone | drone-sdk/Examples/Multiplatform/Protocol/vlib.h | /*
* AR Drone demo
*
*/
#ifndef _CODEC_H
#define _CODEC_H
#include <VP_Os/vp_os_types.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#define TARGET_CPU_ARM 1
#undef INLINE
#ifdef __GNUC__ // The Gnu Compiler Collection
#define _GNU_SOURCE
#define WINAPI
#de... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Com/vp_com_socket_utils.c | <filename>drone-sdk/ARDroneLib/VP_SDK/VP_Com/vp_com_socket_utils.c
#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 ... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VLIB/Platform/arm11/UVLC/uvlc_codec.c | <gh_stars>10-100
#include <VLIB/Platform/video_utils.h>
#include <VLIB/Platform/video_config.h>
#include <VLIB/video_quantizer.h>
#include <VLIB/video_dct.h>
#include <VLIB/video_mem32.h>
#include <VLIB/video_packetizer.h>
#include <VLIB/UVLC/uvlc_codec.h>
#include <VLIB/UVLC/uvlc.h>
#include <VP_Os/vp_os_malloc.h>
... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Common/config_keys.h | <gh_stars>10-100
/******************************************************************************
* COPYRIGHT PARROT 2010
******************************************************************************
* PARROT A.R.Drone SDK
*---------------------------------------------------------------------... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Classes/OpenGLSprite.h | /**
* @file OpenGLSprite.h
*
* Copyright 2009 Parrot SA. All rights reserved.
* @author <NAME>
* @date 2009/10/26
*/
#include "ConstantsAndMacros.h"
typedef enum
{
NO_SCALING,
FIT_X,
FIT_Y,
FIT_XY
} eSCALING;
typedef struct
{
GLuint widthImage;
GLuint widthTexture;
GLuint heightImage;
GLuint heightText... |
mikeadams1/oculus-drone | ffmpeg/libavcodec/x86/vc1dsp_init.c | /*
* VC-1 and WMV3 - DSP functions MMX-optimized
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limita... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/navdata_client/navdata_client.c | #include <ardrone_tool/Navdata/ardrone_navdata_file.h>
#include <ardrone_tool/Control/ardrone_navdata_control.h>
#include "navdata_client/navdata_client.h"
#include "navdata_client/navdata_ihm.h"
#include "navdata_client/navdata_polaris.h"
#include "navdata_client/navdata_tablepilotage.h"
BEGIN_NAVDATA_HANDLER_TABLE
... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Classes/Controllers/GLViewController.h | <gh_stars>10-100
/**
* @file GLViewController.h
*
* Copyright 2009 Parrot SA. All rights reserved.
* @author <NAME>
* @date 2009/10/26
*/
#include "ConstantsAndMacros.h"
#import "OpenGLVideo.h"
#import "OpenGLSprite.h"
#import "ARDrone.h"
#import "InternalProtocols.h"
@class OpenGLVideo;
@interface GLViewCont... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Navigation/Sources/common/mobile_config.h | /**
* @file mobile_config.h
* @author <EMAIL>
* @date 2006/05/02
*/
#ifndef _MOBILE_CONFIG_H_
#define _MOBILE_CONFIG_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
#include "UI/ardr... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Com/vp_com.h | <gh_stars>10-100
/**
* \brief Com Api for video sdk. Public definitions.
* \author <NAME> <<EMAIL>>
* \version 3.0
* \date 16/03/2007
* \warning Subject to completion
*/
#ifndef _VP_COM_INCLUDE_H_
#define _VP_COM_INCLUDE_H_
#include <VP_Os/vp_os_types.h>
#include <VP_Os/vp_os_signal.h>
#ifdef _... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Stages/vp_stages_frame_pipe.c | <gh_stars>10-100
#include <VP_Os/vp_os_malloc.h>
#include <VP_Stages/vp_stages_frame_pipe.h>
#ifdef USE_ELINUX
#include "dma_malloc.h"
#define vp_os_malloc(a) dma_malloc(a)
#endif
//#include <VP_Os/elinux/vp_os_ltt.h>
// Sender function
C_RESULT
vp_stages_frame_pipe_sender_open(vp_stages_frame_pipe_config_t *cfg)
{
... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_tool.c | <filename>drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/ardrone_tool.c
#include <VP_Os/vp_os_malloc.h>
#include <VP_Os/vp_os_print.h>
#include <VP_Api/vp_api_thread_helper.h>
#include <ardrone_tool/ardrone_tool.h>
#include <ardrone_tool/ardrone_time.h>
#include <ardrone_tool/ardrone_tool_configuration.h>
#include <ardron... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/sdk_demo/Sources/UI/ui.c | #include <config.h>
#include <ardrone_api.h>
#include <UI/ui.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 )
{
return C_OK;
}
|
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/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 <pthread.h>
#include <sys/time.h>
#include <time.h>
#include <android/log.h>
#include "app.h"
#include "co... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Com/elinux/vp_com_serial.c | <filename>drone-sdk/ARDroneLib/VP_SDK/VP_Com/elinux/vp_com_serial.c
// Header ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* \brief Com Api for video sdk. Private declarations.
* \author <NAME> <<EMAIL>>
* \version 1.0
* \date... |
mikeadams1/oculus-drone | drone-sdk/Examples/Linux/Testbenches/ftp_test/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/UI/ui.h | #ifndef _UI_H_
#define _UI_H_
#include <VP_Os/vp_os_types.h>
#include <ardrone_tool/UI/ardrone_input.h>
C_RESULT custom_reset_user_input(input_state_t* input_state, uint32_t user_input );
C_RESULT custom_update_user_input(input_state_t* input_state, uint32_t user_input );
#endif // _UI_H_
|
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/android.c | <reponame>mikeadams1/oculus-drone
/*
* AR Drone demo
*
* code originally nased on:"San Angeles" Android demo app
*/
#include <jni.h>
#include <sys/time.h>
#include <time.h>
#include <android/log.h>
#include <stdint.h>
#include <ardrone_tool/UI/ardrone_input.h>
#include "navdata.h"
#include "app.h"
/*
*
* Comma... |
mikeadams1/oculus-drone | drone-sdk/ControlEngine/iPhone/Classes/Navdata/navdata.c | #include "navdata.h"
#include "ARDroneTypes.h"
#include <control_states.h>
#include <ardrone_tool/Navdata/ardrone_navdata_file.h>
#include <ardrone_tool/Navdata/ardrone_navdata_client.h>
navdata_unpacked_t inst_nav;
vp_os_mutex_t inst_nav_mutex;
extern char root_dir[];
static bool_t writeToFile = FALSE;
static inline ... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/VP_Os/elinux/vp_os_signal.c | <gh_stars>10-100
/**
* @file signal.c
* @author <EMAIL>
* @date 2006/12/15
*/
#include "VP_Os/vp_os_signal.h"
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <sys/time.h>
#include <errno.h>
void
vp_os_mutex_init(vp_os_mutex_t *mutex)
{
pthread_mutex_init((pthread_mutex_t *)mutex, NULL);
}
void
vp_os_mute... |
mikeadams1/oculus-drone | drone-sdk/Examples/Android/ardrone/project/jni/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 <ardrone_api.h>
#include <ardrone_tool/ardrone_tool.h>
#include <VP_Api/vp_api_thread_helper.h>
PROTO_THREAD_ROUTINE(video_stage, data)... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/VP_SDK/Examples/linux/api_wifiClientTCP_decoder_sdl.c | <reponame>mikeadams1/oculus-drone
#include <stdlib.h>
#include <ctype.h>
#include <VP_Api/vp_api.h>
#include <VP_Api/vp_api_thread_helper.h>
#include <VP_Api/vp_api_error.h>
#include <VP_Stages/vp_stages_configs.h>
#include <VP_Stages/vp_stages_io_console.h>
#include <VP_Stages/vp_stages_o_sdl.h>
#include <VP_Stages/v... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage_recorder.c | #include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#else
#include <sys/timeb.h>
#include <Winsock2.h> // for timeval structure
int gettimeofday (struct timeval *tp, void *tz)
{
struct _timeb timebuffer;
_ftime (&timebuffer);
tp->tv_sec = (long)timebuffer.time;
tp->tv_usec = (long)timebuffer.millitm... |
mikeadams1/oculus-drone | drone-sdk/Examples/iPhone/FreeFlight/Classes/Menus/MenuUpdater.h | //
// MenuUpdater.h
// Updater
//
// Created by <NAME> on 10-05-14.
// Copyright Playsoft 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MenuController.h"
#import "ARDroneFTP.h"
#import "FiniteStateMachine.h"
enum
{
UPDATER_STATE_WAITING_CONNECTION,
UPDATER_STATE_NOT_CONNECTED,
UPDATER_STATE_R... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_com_stage.c | #include <config.h>
#include <VP_Os/vp_os_print.h>
#include <VP_Os/vp_os_malloc.h>
#include <VP_Os/vp_os_delay.h>
#include <ardrone_tool/Video/video_com_stage.h>
#include <VP_Com/vp_com_socket.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#inc... |
mikeadams1/oculus-drone | drone-sdk/ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage_recorder.h | <gh_stars>10-100
#ifndef _VIDEO_STAGE_RECORDER_H_
#define _VIDEO_STAGE_RECORDER_H_
#include <stdio.h>
#include <VP_Api/vp_api.h>
#define VIDEO_FILENAME_LENGTH 1024
#ifndef _VIDEO_RECORD_STATE_ENUM_
#define _VIDEO_RECORD_STATE_ENUM_
typedef enum
{
VIDEO_RECORD_HOLD, // Video recording is on hold, waiting for the sta... |
mikeadams1/oculus-drone | drone-sdk/Examples/iPhone/FreeFlight/Classes/AppDelegate.h | //
// AppDelegate.h
// FreeFlight
//
// Created by <NAME> on 16/10/09.
// Copyright Parrot SA 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ARDrone.h"
#import "MenuController.h"
#import <MediaPlayer/MediaPlayer.h>
@class EAGLView;
@interface AppDelegate : NSObject <UIApplicationDelegate, ARDrone... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.