repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
structai/AsyncTelegram2
src/AsyncTelegram2.h
#ifndef ASYNCTELEGRAMV2 #define ASYNCTELEGRAMV2 // for using int_64 data #define ARDUINOJSON_USE_LONG_LONG 1 #define ARDUINOJSON_DECODE_UNICODE 1 #include <ArduinoJson.h> #if defined(ESP32) || defined(ESP8266) #define FS_SUPPORT true #include <FS.h> #include <WiFiClientSecure.h> #else #...
structai/AsyncTelegram2
src/DataStructures.h
<gh_stars>1-10 #ifndef DATA_STRUCTURES #define DATA_STRUCTURES #define BUFFER_BIG 2048 // json parser buffer size (ArduinoJson v6) #define BUFFER_MEDIUM 1028 // json parser buffer size (ArduinoJson v6) #define BUFFER_SMALL 512 // json parser buffer size (ArduinoJson v6) enum Message...
pmeenan/powermon
PowerStats.h
#ifdef WIN32 #include <Windows.h> #endif #include <stdio.h> #include <string.h> #include <string> #ifdef WIN32 #include "lib/intel/IntelPowerGadgetLib.h" #endif class PowerStats { public: PowerStats(); ~PowerStats(); std::string Start(); std::string Measure(); bool ok; private: std::string GetCPUTime(); ...
devdawei/DVVCoding
DVVCoding/DVVCoding/DVVCoding.h
// // DVVCoding.h // DVVCoding <https://github.com/devdawei/DVVCoding.git> // // Created by 大威 on 2016/11/21. // Copyright © 2016年 devdawei. All rights reserved. // #import <Foundation/Foundation.h> @protocol DVVCodingDelegate <NSObject> @optional /** 如果有不想缓存的属性,通过此代理方法返回就可以了 */ + (NSArray *)dvv_codingIgnoreP...
sergesyrota/sewer-monitor
Arduino/LaserSensing.h
<reponame>sergesyrota/sewer-monitor #ifndef LaserSensing_h #define LaserSensing_h #define LASER_SENSING_NUMBER_READINGS 50 class LaserSensing { public: LaserSensing(int max_valid, int min_valid); // Constructor void reading(int data); // Records a reading, and does necessary processing int...
sergesyrota/sewer-monitor
cppunit/TestLaserSensing.h
<gh_stars>0 /* * TestLin2dSolver.cpp * * Created on: Feb 16, 2013 * Author: <NAME> */ #include <iostream> #include <cppunit/TestFixture.h> #include <cppunit/TestAssert.h> #include <cppunit/TestCaller.h> #include <cppunit/TestSuite.h> #include <cppunit/TestCase.h> #include "../Arduino/LaserSensing.h" using...
sergesyrota/sewer-monitor
Arduino/config.h
<gh_stars>0 //#define DEBUG // Config version #define CONFIG_VERSION "SM1" // SyrotaAutomation parameters #define RS485_CONTROL_PIN 2 #define NET_ADDRESS "SewerMonitor" struct configuration_t { char checkVersion[4]; // This is for detection if we have right settings or not unsigned long baudRate; // Serial/RS-48...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/OverrideRCIn.h
<reponame>Changliu52/UnicornTeensyDrone #ifndef _ROS_mavros_OverrideRCIn_h #define _ROS_mavros_OverrideRCIn_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { class OverrideRCIn : public ros::Msg { public: uint16_t channels[8]; enum { CHAN_RELEAS...
Changliu52/UnicornTeensyDrone
unicorn/odroidListener.h
//©2016 <NAME> // // transform_listener.h // // // Created by <NAME> on 28/01/2015. // // #ifndef ROS_ODROIDLISTENER_H_ #define ROS_ODROIDLISTENER_H_ #include <vi_ekf/teensyPilot.h> #include "PositionManageSVO.h" namespace vi_ekf { class odroidListener { public: // Constructor od...
Changliu52/UnicornTeensyDrone
unicorn/myFreeIMU.h
<reponame>Changliu52/UnicornTeensyDrone<filename>unicorn/myFreeIMU.h<gh_stars>1-10 //©2016 <NAME> #ifndef __MYFREEIMU_H__ #define __MYFREEIMU_H__ #include <Arduino.h> #include "COM.h" // Shift mean filter for accel in world frame //_____________________________ void filterAcce(float* acce, float* acceNew) { float ...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/ParamSet.h
#ifndef _ROS_SERVICE_ParamSet_h #define _ROS_SERVICE_ParamSet_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char PARAMSET[] = "mavros/ParamSet"; class ParamSetRequest : public ros::Msg { public: const char* param_id; int64_t int...
Changliu52/UnicornTeensyDrone
unicorn/spektrumSatil.h
<gh_stars>1-10 //©2016 <NAME> #ifndef __SATIL_H__ #define __SATIL_H__ #include <Arduino.h> #include "MyMatMath.h" #define Start_byte 0x01 #define Stop_byte 0x03 #define chnNum 7 int chns[chnNum] = {0,0,0,0,0,0,0}; int chnsChange; int chnsOld[chnNum] = {0,0,0,0,0,0,0}; // This function is coupled with spectrum DSM2...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/WaypointGOTO.h
#ifndef _ROS_SERVICE_WaypointGOTO_h #define _ROS_SERVICE_WaypointGOTO_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "mavros/Waypoint.h" namespace mavros { static const char WAYPOINTGOTO[] = "mavros/WaypointGOTO"; class WaypointGOTORequest : public ros::Msg { publ...
Changliu52/UnicornTeensyDrone
unicorn/AttitudeController.h
<filename>unicorn/AttitudeController.h<gh_stars>1-10 //©2016 <NAME> #ifndef __Attitude_Controller_H__ #define __Attitude_Controller_H__ #include <Arduino.h> #include "ESC_PWM.h" // Enable attitude controller //_____________________________________ void attach_attitude_controller(float dt) { // ---------> // Com...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/RadioStatus.h
#ifndef _ROS_mavros_RadioStatus_h #define _ROS_mavros_RadioStatus_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" namespace mavros { class RadioStatus : public ros::Msg { public: std_msgs::Header header; uint8_t rssi; uint8_t r...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationUNICON2.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 322; const int acc_off_y = 216; const int acc_off_z = 1596; const float acc_scale_x = 16467.400206; const float acc_scale...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/CommandLong.h
<gh_stars>1-10 #ifndef _ROS_SERVICE_CommandLong_h #define _ROS_SERVICE_CommandLong_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char COMMANDLONG[] = "mavros/CommandLong"; class CommandLongRequest : public ros::Msg { public: uint16_t ...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/vi_ekf/teensyPilot.h
<reponame>Changliu52/UnicornTeensyDrone #ifndef _ROS_vi_ekf_teensyPilot_h #define _ROS_vi_ekf_teensyPilot_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace vi_ekf { class teensyPilot : public ros::Msg { public: float qw; float qx; float qy; f...
Changliu52/UnicornTeensyDrone
unicorn/AccelController.h
//©2016 <NAME> #ifndef __Accel_Controller_H__ #define __Accel_Controller_H__ #include <Arduino.h> // function to Convert desired acceleration vector to desired thrust and desired attitude. // Note: dt is in micro-seconds void accel_2_attitudeThrust() { // Make sure not close to shut down motors or reverse flying (...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/Mavlink.h
#ifndef _ROS_mavros_Mavlink_h #define _ROS_mavros_Mavlink_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" namespace mavros { class Mavlink : public ros::Msg { public: std_msgs::Header header; uint8_t len; uint8_t seq; uin...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/WaypointPush.h
<gh_stars>1-10 #ifndef _ROS_SERVICE_WaypointPush_h #define _ROS_SERVICE_WaypointPush_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "mavros/Waypoint.h" namespace mavros { static const char WAYPOINTPUSH[] = "mavros/WaypointPush"; class WaypointPushRequest : public ros::M...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibration250.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 43; const int acc_off_y = -71; const int acc_off_z = 1414; const float acc_scale_x = 16466.404159; const float acc_scale_...
Changliu52/UnicornTeensyDrone
unicorn/PositionController.h
<gh_stars>1-10 //©2016 <NAME> #ifndef POSITION_CONTROLLER_H_ #define POSITION_CONTROLLER_H_ #include "AccelController.h" #include "AttitudeController.h" #include "spektrumSatil.h" #include "ESC_PWM.h" #include <Arduino.h> //####################### // ACCELERATION controller (this controller update RATE is driven by t...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/WaypointList.h
#ifndef _ROS_mavros_WaypointList_h #define _ROS_mavros_WaypointList_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "mavros/Waypoint.h" namespace mavros { class WaypointList : public ros::Msg { public: uint8_t waypoints_length; mavros::Waypoint st_waypo...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/rbuf/rbuf.h
// // simple ring buffer class // #ifndef RBUF_H #define RBUF_H #include <inttypes.h> // if used for debug adjust buffer size depending on how verbose messages are and // in/out rates - overflows are blocked prior to add #define RBUF_SIZE 2048 class rbuf { public: rbuf(); ~rbuf(); // functions void ...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationUNICON.h
<reponame>Changliu52/UnicornTeensyDrone /** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 204; const int acc_off_y = -11; const int acc_off_z = 2033; const float acc_scale_...
Changliu52/UnicornTeensyDrone
unicorn/globleVairbles.h
//©2016 <NAME> #ifndef Globle_variables_h #define Globle_variables_h //_______________________________ // User Defines #define SAMPLING_RATE 2500.00f // micro seconds, 400Hz (remember to change loop_hz)!!!!! #define LOOP_HZ 400 // loop hz (must change accordingly with Sampling_rate)!! #define M_QUAD ...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/CommandTOL.h
<gh_stars>1-10 #ifndef _ROS_SERVICE_CommandTOL_h #define _ROS_SERVICE_CommandTOL_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char COMMANDTOL[] = "mavros/CommandTOL"; class CommandTOLRequest : public ros::Msg { public: float min_pitc...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/svo_msgs/DenseInput.h
<reponame>Changliu52/UnicornTeensyDrone #ifndef _ROS_svo_msgs_DenseInput_h #define _ROS_svo_msgs_DenseInput_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "geometry_msgs/Pose.h" #include "sensor_msgs/Image.h" namespace svo_msgs { class Dense...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/CommandHome.h
<gh_stars>1-10 #ifndef _ROS_SERVICE_CommandHome_h #define _ROS_SERVICE_CommandHome_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char COMMANDHOME[] = "mavros/CommandHome"; class CommandHomeRequest : public ros::Msg { public: bool curr...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/svo_msgs/Feature.h
#ifndef _ROS_svo_msgs_Feature_h #define _ROS_svo_msgs_Feature_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace svo_msgs { class Feature : public ros::Msg { public: float u; float v; float x; float y; float z; Feature(): u(0)...
Changliu52/UnicornTeensyDrone
unicorn/PositionManageSVO.h
//©2016 <NAME> #ifndef POSITION_MANAGE_SVO_H_ #define POSITION_MANAGE_SVO_H_ #include "spektrumSatil.h" //________________________ // For smooth transation //------------------------- void vision_smoothTrans() { // This takes care of the smooth transation to vision position control if (((newMap >0 && vision_avail...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/svo_msgs/NbvTrajectory.h
#ifndef _ROS_svo_msgs_NbvTrajectory_h #define _ROS_svo_msgs_NbvTrajectory_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "geometry_msgs/Pose.h" namespace svo_msgs { class NbvTrajectory : public ros::Msg { public: std_msgs::Header...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationFlipensy.h
<gh_stars>1-10 /** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 261; const int acc_off_y = 156; const int acc_off_z = 491; const float acc_scale_x = 16386.272503; const f...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/ParamPull.h
<gh_stars>1-10 #ifndef _ROS_SERVICE_ParamPull_h #define _ROS_SERVICE_ParamPull_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char PARAMPULL[] = "mavros/ParamPull"; class ParamPullRequest : public ros::Msg { public: bool force_pull; ...
Changliu52/UnicornTeensyDrone
unicorn/ESC_PWM.h
//©2016 <NAME> #ifndef __ESCPWM_H__ #define __ESCPWM_H__ #include <Arduino.h> /* ESC / Servo signal generation done in hardware by FLEX timer, without ISR (yay!) We are using flex timer0 which supports 8 channels. Currently generating 400 Hz PWM signal that is fed into electronic speed controllers corre...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/AP_Filter/Filter.h
#ifndef __FILTER_H__ #define __FILTER_H__ /* Umbrella header for the Filter library */ #include "FilterClass.h" #include "AverageFilter.h" #include "DerivativeFilter.h" #include "FilterWithBuffer.h" #include "LowPassFilter.h" #include "ModeFilter.h" #include "Butter.h" #endif //__FILTER_H__
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/FreeIMU.h
<gh_stars>1-10 /* FreeIMU.h - A libre and easy to use orientation sensing library for Arduino Copyright (C) 2011 <NAME> <fabio at varesano dot net> Development of this code has been supported by the Department of Computer Science, Universita' degli Studi di Torino, Italy within the Piemonte Project http://www.piemonte...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationS500.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 89; const int acc_off_y = 32; const int acc_off_z = 2708; const float acc_scale_x = 16386.652279; const float acc_scale_y...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/RCOut.h
<reponame>Changliu52/UnicornTeensyDrone #ifndef _ROS_mavros_RCOut_h #define _ROS_mavros_RCOut_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" namespace mavros { class RCOut : public ros::Msg { public: std_msgs::Header header; uint8_t...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/CommandInt.h
#ifndef _ROS_SERVICE_CommandInt_h #define _ROS_SERVICE_CommandInt_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { static const char COMMANDINT[] = "mavros/CommandInt"; class CommandIntRequest : public ros::Msg { public: uint8_t frame; uint16_t...
Changliu52/UnicornTeensyDrone
unicorn/COM.h
//©2016 <NAME> #ifndef __COM_H__ #define __COM_H__ #include <Arduino.h> // constants const uint8_t START_BYTE = 0xF0; const uint8_t STOP_BYTE = 0xA5; // Mode variable int MODE = 0; //0 - No com, 1 - gain tuning, 2 - status debugging // Gains var union{ struct{ float PGain[3]; float IGain[3]; float DG...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/svo_msgs/Info.h
#ifndef _ROS_svo_msgs_Info_h #define _ROS_svo_msgs_Info_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" namespace svo_msgs { class Info : public ros::Msg { public: std_msgs::Header header; float processing_time; uint8_t keyfram...
Changliu52/UnicornTeensyDrone
unicorn/MyMatMath.h
<filename>unicorn/MyMatMath.h //©2016 <NAME> #ifndef MyMatrixMath_h #define MyMatrixMath_h #include "Arduino.h" // B = A void copy3(float A[3][3], float B[3][3]); void copy3(float A[3], float B[3]); // B = A' //__________________________________________ void transpose3(float A[3][3], float B[3][3]); // A = kA, // ...
Changliu52/UnicornTeensyDrone
unicorn/selfieManager.h
<gh_stars>1-10 //©2016 <NAME> #ifndef __SELFIE_H__ #define __SELFIE_H__ #include <Arduino.h> //############## // function to update selfie button command //############## void update_selfie_command() { int timeNow = millis(); // button pressed if(digitalRead(selfie_pin) == HIGH){ // button hold for more ...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationTetherSLAM.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 389; const int acc_off_y = 82; const int acc_off_z = 2083; const float acc_scale_x = 16294.721810; const float acc_scale_...
Changliu52/UnicornTeensyDrone
unicorn/IMU_broadcaster.h
<gh_stars>1-10 //©2016 <NAME> #ifndef ROS_IMU_BROADCASTER_H_ #define ROS_IMU_BROADCASTER_H_ #include <geometry_msgs/TransformStamped.h> namespace tf { class IMUBroadcaster { public: IMUBroadcaster() : publisher_("teensy/imu", &internal_msg) {} void init(ros::NodeHandle &nh) { nh.ad...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationTilty.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 240; const int acc_off_y = -103; const int acc_off_z = -1040; const float acc_scale_x = 16527.832968; const float acc_sca...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibration250solo.h
/** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 273; const int acc_off_y = 60; const int acc_off_z = 2297; const float acc_scale_x = 16292.892636; const float acc_scale_...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/Calibration Files/calibrationFlipensy2.h
<filename>libraries_teensy3.2/FreeIMU/Calibration Files/calibrationFlipensy2.h /** * FreeIMU calibration header. Automatically generated by FreeIMU_GUI. * Do not edit manually unless you know what you are doing. */ #define CALIBRATION_H const int acc_off_x = 267; const int acc_off_y = 2; const int acc_...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/AP_Filter/Butter.h
#ifndef __FILTER_BUTTER_H__ #define __FILTER_BUTTER_H__ //#include <AP_HAL.h> template <typename Coefficients> class Butter2 { public: float filter(float input) { float newhist = input + Coefficients::Coef1*hist[1] + Coefficients::Coef2*hist[0]; float ret = (newhist + 2*hist[1] + hist[0])/Coeffic...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/ros_lib/mavros/Waypoint.h
#ifndef _ROS_mavros_Waypoint_h #define _ROS_mavros_Waypoint_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace mavros { class Waypoint : public ros::Msg { public: uint8_t frame; uint16_t command; bool is_current; bool autocontinue; float...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/FreeIMU/MadgwickAHRS.h
<reponame>Changliu52/UnicornTeensyDrone<gh_stars>1-10 //===================================================================================================== // MadgwickAHRS.c //===================================================================================================== // // Implementation of Madgwick's IMU a...
Changliu52/UnicornTeensyDrone
libraries_teensy3.2/LPS331/LPS331.h
<reponame>Changliu52/UnicornTeensyDrone #ifndef LPS331_h #define LPS331_h #include <Arduino.h> // for byte data type // SA0 states #define LPS331_SA0_LOW 0 #define LPS331_SA0_HIGH 1 #define LPS331_SA0_AUTO 2 // register addresses // Note: Some of the register names in the datasheet are inconsistent // between Tabl...
marceloh220/XPT2046_TOUCH_MBEDOS
touch.h
#ifndef _TOUCH_H_ #define _TOUCH_H_ #include "mbed.h" #endif
Qiaowen-Jia/java-ranger
src/examples/concolic/concolic_BesselImp.c
/* The BesselImp.c file, which implements the native function */ #include <jni.h> /* Java Native Interface headers */ #include "concolic_Bessel.h" /* Auto-generated header created by javah -jni */ #include <math.h> /* Include math.h for the prototype of function y0 */ /* Our C definition of the function b...
Gip-Gip/Sweer
common/include/ssln_sub.h
/* ssln_sub.h - includes files needed by ssln_sub.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_SUB_H #include <ssln_cmn.h> #define FREEALL() {ssln_rid(workingSubtrahend); ssln_rid(workingMinuend);} #define SSLN_SUB_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_typ.h
/* ssln_typ.h - defines the types used by ssln ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_TYP_H #include <ssln_def.h> typedef long int natural; typedef unsigned char numeral; typedef char character; typedef character * string; typedef enum { none, err_errno, } ssln_er...
Gip-Gip/Sweer
common/include/ssln_cmn.h
<gh_stars>0 /* ssln_cmn.h - includes files needed all around the Sweer project ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_CMN_H #include <stdlib.h> #include <string.h> #include <errno.h> #include <ssln_typ.h> #include <ssln_mac.h> extern string ssln_numTable[]; extern ssln ssln_e...
Gip-Gip/Sweer
common/include/ssln_add.h
/* ssln_add.h - includes files needed by ssln_add.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_ADD_H #include <ssln_cmn.h> #define FREEALL() SSLN_CLNLIT(addend); #define SSLN_ADD_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_adi.h
/* ssln_adi.h - includes files needed by ssln_adi.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_ADI_H #include <ssln_cmn.h> #define SSLN_ADI_H NULL #endif
Gip-Gip/Sweer
common/ssln_new.c
<filename>common/ssln_new.c /* ssln_new - returns a new large number ARGUMENTS: VARIABLES: ssln ret - the new large number being returned */ #include <ssln_cmn.h> ssln ssln_new() { ssln ret; ret.negative = false; ret.literal = false; ret.error = none; ret.integerSize = NUMALLOC; ret.fract...
Gip-Gip/Sweer
common/include/ssln_gt.h
<gh_stars>0 /* ssln_gt.h - includes files needed by ssln_gt.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_GT_H #include <ssln_cmn.h> #define FREEALL() {ssln_rid(cmpnum1); ssln_rid(cmpnum2);} #define SSLN_GT_H NULL #endif
Gip-Gip/Sweer
common/ssln_adi.c
<filename>common/ssln_adi.c<gh_stars>0 /* ssln_adi - adds a single numeral to the end of an ssln's integer-part ARGUMENTS: ssln num - the number being added to VARIABLES: */ #include <ssln_adi.h> ssln ssln_adi(ssln *num) { if(!(num->integer = realloc(num->integer, num->integerSize += NUMALLOC)))...
Gip-Gip/Sweer
common/include/ssln_str.h
<reponame>Gip-Gip/Sweer /* ssln_str.h - includes files for ssln_str.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_STR_H #include <ssln_cmn.h> #define SSLN_STR_H NULL #endif
Gip-Gip/Sweer
common/ssln_n2s.c
/* ssln_n2s - converts a number to a string of the desired base ARGUMENTS: ssln num - the number being converted natural base - the base to use VARIABLES: string ret - the string being returned */ #include <ssln_n2s.h> string ssln_n2s(ssln num, natural base) { string ret = calloc(STRALLOC, s...
Gip-Gip/Sweer
common/include/ssln_eEr.h
/* ssln_eEr.h - includes files needed by ssln_eEr.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_EER_H #include <ssln_cmn.h> #define SSLN_EER_H NULL #endif
Gip-Gip/Sweer
common/ssln_n2i.c
/* ssln_n2i - converts SSLNs to integers ARGUMENTS: VARIABLES: */ #include <ssln_n2i.h> natural ssln_n2i(ssln src) { natural retInt = ZERO, numn = src.integerSize; while(numn--) { retInt <<= BYTESHFT; retInt = src.integer[numn]; } FREEALL(); return ret...
Gip-Gip/Sweer
common/ssln_mod.c
<gh_stars>0 /* ssln_div - divides the dividend by the divisor ARGUMENTS: ssln dividend ssln divisor VARIABLES: */ #include <ssln_mod.h> ssln ssln_mod(ssln dividend, ssln divisor) { ssln workingDividend = ssln_new(), workingDivisor = ssln_new(); natural raise = dividend.integerSize...
Gip-Gip/Sweer
common/ssln_rid.c
/* ssln_rid - removes the given ssln from memory ARGUMENTS: ssln num - the ssln being removed VARIABLES: */ #include <ssln_rid.h> void ssln_rid(ssln num) { free(num.integer); free(num.fractional); }
Gip-Gip/Sweer
common/ssln_add.c
<gh_stars>0 /* ssln_add - adds two sslns together ARGUMENTS: ssln aguend ssln addend VARIABLES: */ #include <ssln_add.h> ssln ssln_add(ssln aguend, ssln addend) { ssln ret; natural numn = INDEXINIT, worknum; bool carry = false; if(aguend.negative & (!addend.negative)) { ...
Gip-Gip/Sweer
include/sweer.h
/* sweer.h - a header for everything Sweer ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SWEER_H #ifndef NULL #define NULL #endif /* TYPEDEFS */ typedef long unsigned int natural; typedef unsigned char numeral; typedef char character; typedef character * string; typedef enum { ssln_err_none, ssln_e...
Gip-Gip/Sweer
common/include/ssln_mac.h
<reponame>Gip-Gip/Sweer<gh_stars>0 /* ssln_mac.h - defines a few handy macros ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_MAC_H #define SSLN_CLNLIT(num) if(num.literal) ssln_rid(num); #define SSLN_MAC_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_cmp.h
<gh_stars>0 /* ssln_cmp.h - includes files needed by ssln_cmp.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_CMP_H #include <ssln_cmn.h> #define FREEALL() {SSLN_CLNLIT(num1); SSLN_CLNLIT(num2);} #define SSLN_CMP_H NULL #endif
Gip-Gip/Sweer
common/ssln_cmp.c
<gh_stars>0 /* ssln_cmp - compares two numbers and returns "true" if they are equal ARGUMENTS: VARIABLES: */ #include <ssln_cmp.h> bool ssln_cmp(ssln num1, ssln num2) { if(num1.negative == num2.negative && num1.integerSize == num2.integerSize && num1.fractionalSize == num2.fractio...
Gip-Gip/Sweer
common/ssln_ras.c
<reponame>Gip-Gip/Sweer /* ssln_ras - adds a given number of digits to an SSLN ARGUMENTS: ssln num natural raise VARIABLES: */ #include <ssln_cmn.h> ssln ssln_ras(ssln num, natural raise) { ssln workNum = ssln_new(), ret = ssln_new(); ssln_set(&ret, num); ssln_set(&workNum, ret); ...
Gip-Gip/Sweer
common/ssln_set.c
<filename>common/ssln_set.c /* ssln_set - sets a ssln ARGUMENTS: ssln *dest - the number being set ssln src - the number being set to VARIABLES: */ #include <ssln_set.h> ssln ssln_set(ssln *dest, ssln src) { dest->negative = src.negative; dest->integerSize = src.integerSize; dest->fra...
Gip-Gip/Sweer
common/ssln_eEr.c
<filename>common/ssln_eEr.c<gh_stars>0 /* ssln_eEr - creates a ssln which will only used for the error embedded in it ARGUMENTS: natural error - the error to embed VARIABLES: ssln ret */ #include <ssln_eEr.h> ssln ssln_eEr(natural error) { ssln ret = ssln_new(); ret.literal = true; ...
Gip-Gip/Sweer
common/include/ssln_mod.h
/* ssln_mod.h - includes files needed by ssln_mod.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_MOD_H #include <ssln_cmn.h> #define FREEALL() {ssln_rid(workingDivisor);} #define SSLN_MOD_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_n2i.h
/* ssln_n2i.h - includes files needed by ssln_n2i.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_N2I_H #include <ssln_cmn.h> #define FREEALL() {SSLN_CLNLIT(src);} #define SSLN_N2I_H NULL #endif
Gip-Gip/Sweer
common/ssln_i2n.c
/* ssln_i2n - converts integers to the ssln type ARGUMENTS: natural num - the integer being converted VARIABLES: */ #include <ssln_i2n.h> ssln ssln_i2n(natural num) { ssln ret = ssln_new(); natural numn = 0; ret.literal = true; while(num) { ret.integer[numn++] = ...
Gip-Gip/Sweer
common/include/ssln_div.h
<reponame>Gip-Gip/Sweer /* ssln_div.h - includes files needed by ssln_div.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_DIV_H #include <ssln_cmn.h> #define FREEALL() {ssln_rid(workingDividend); ssln_rid(workingDivisor);} #define SSLN_DIV_H NULL #endif
Gip-Gip/Sweer
common/ssln_gt.c
/* ssln_gt - compares two SSLNs and sees if the first number is greater than the second number ARGUMENTS: ssln num1 ssln num2 VARIABLES: */ #include <ssln_gt.h> bool ssln_gt(ssln num1, ssln num2) { ssln cmpnum1 = ssln_new(), cmpnum2 = ssln_new(); natural numn = num1.integerSi...
Gip-Gip/Sweer
common/include/ssln_n2s.h
/* ssln_n2s.h - includes files needed by ssln_n2s.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_N2S_H #include <ssln_cmn.h> #define SSLN_N2S_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_i2n.h
<gh_stars>0 /* ssln_i2s.h - includes files needed by ssln_i2s.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_I2S_H #include <ssln_cmn.h> #define SSLN_I2S_H NULL #endif
Gip-Gip/Sweer
common/ssln_sub.c
<filename>common/ssln_sub.c<gh_stars>0 /* ssln_sub - subtracts the from the first number ARGUMENTS: ssln subtrahend ssln minuend VARIABLES: */ #include <ssln_sub.h> ssln ssln_sub(ssln subtrahend, ssln minuend) { ssln difference, workingSubtrahend = ssln_new(), workingMinuend =...
Gip-Gip/Sweer
common/include/ssln_set.h
/* ssln_set.h - includes files needed by ssln_rid.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_SET_H #include <ssln_cmn.h> #define SSLN_SET_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_rid.h
/* ssln_rid.h - includes files needed by ssln_rid.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_RID_H #include <ssln_cmn.h> #define SSLN_RID_H NULL #endif
Gip-Gip/Sweer
common/include/ssln_def.h
/* ssln_def.h - defines things needed by the entire project ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_DEF_H #ifndef NULL #define NULL 0 #endif #define ONE 1 #define ZERO 0 #define SSLN_ZERO ssln_i2n(ZERO) #define INDEXINIT -1 #define NUMALLOC 1 #define STRALLOC 1 #define FU...
Gip-Gip/Sweer
common/ssln_div.c
/* ssln_div - divides the dividend by the divisor ARGUMENTS: ssln dividend ssln divisor VARIABLES: */ #include <ssln_div.h> ssln ssln_div(ssln dividend, ssln divisor) { ssln quotent = ssln_new(), workingDividend = ssln_new(), workingDivisor = ssln_new(); natural raise =...
Gip-Gip/Sweer
common/include/ssln_sap.h
/* ssln_mod.h - includes files needed by ssln_mod.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_SAP_H #include <ssln_cmn.h> #define SSLN_SAP_H NULL #endif
HighStakesCoin/HighStakes
src/qt/newsdialog.h
<gh_stars>1-10 // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2019 The HighStakes developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_NEWSDIALOG_H #define BITCOIN_QT_NEWSDIALOG_H #incl...
HighStakesCoin/HighStakes
src/chainparamsseeds.h
#ifndef BITCOIN_CHAINPARAMSSEEDS_H #define BITCOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the bitcoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly. ...
zabbix-tools/libzbxpgsql
src/libzbxpgsql.c
/* ** libzbxpgsql - A PostgreSQL monitoring module for Zabbix ** Copyright (C) 2015 - <NAME> <<EMAIL>> ** ** This program 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; either version 2 of the License, or *...
Sparklester/QLauncher
mainwindow.h
<gh_stars>0 #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "config.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_keySequenceEdit_keySequenceCha...
Sparklester/QLauncher
config.h
#ifndef CONFIG_H #define CONFIG_H #include <QDialog> namespace Ui { class Config; } class Config : public QDialog { Q_OBJECT public: explicit Config(QWidget *parent = 0); ~Config(); private slots: void on_top_clicked(); void on_left_clicked(); void on_bottom_clicked(); void on_right_...
gravicle/library
Library/Library.h
<reponame>gravicle/library // // Library.h // Library // // Created by Amit on 5/26/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Library. FOUNDATION_EXPORT double LibraryVersionNumber; //! Project version string for Library. FOUNDATION_EXPORT cons...
om-mani-padme-hum/LTPNG
LTPNG.h
<reponame>om-mani-padme-hum/LTPNG<gh_stars>0 /** * Lowe Technologies PNG Encoder (LTPNG) * * A PNG encoder built to the ISO/IEC 15948:2003 Portable Network Graphics Standard Rev 10 Nov 03 * Supports only 8-bit and 16-bit truecolour PNG images with or without alpha and no filtering. * * @author <NAME> * @version ...
jjohnson42/python-eficompressor
EfiCompressor.c
<gh_stars>1-10 /** @file Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opens...
Nikhil-Xavier-DS/Self_Driving_Car----Sensor-Fusion-Localization---Control
Self_Driving_Car----Model-Predictive Controller/src/MPC.h
<filename>Self_Driving_Car----Model-Predictive Controller/src/MPC.h<gh_stars>1-10 #ifndef MPC_H #define MPC_H #include <vector> #include "Eigen-3.3/Eigen/Core" #define DT 0.1 #define LF 2.67 #define W_DDELTA 0 #define W_DA 0.0 using namespace std; class MPC { public: MPC(); virtual ~MPC(); vector<double> Solve...