id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
754,878
RawWifi.h
dridri_bcflight/flight/links/RawWifi.h
#ifndef RAWWIFI_LINK_H #define RAWWIFI_LINK_H #include "Link.h" #include "Config.h" #include <Thread.h> #include <condition_variable> namespace rawwifi { class RawWifi; class WifiInterface; }; LUA_CLASS class RawWifi : public Link, protected Thread { public: LUA_EXPORT RawWifi(); virtual ~RawWifi(); virtual in...
1,445
C++
.h
42
32.452381
102
0.758447
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,879
MultiLink.h
dridri_bcflight/flight/links/MultiLink.h
/* * BCFlight * Copyright (C) 2017 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,704
C++
.h
50
32.1
91
0.74635
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,880
SX127xRegs.h
dridri_bcflight/flight/links/SX127xRegs.h
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C) 2014 Semtech Description: SX1276 FSK modem registers and bits definitions License: Revise...
47,971
C++
.h
990
47.09899
79
0.525783
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,881
nRF24L01.h
dridri_bcflight/flight/links/nRF24L01.h
/* * BCFlight * Copyright (C) 2017 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
3,032
C++
.h
109
25.706422
173
0.738891
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,882
RF24_config.h
dridri_bcflight/flight/links/RF24/RF24_config.h
/* Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ /* spaniakos <spaniakos@gmail.com> Added __ARDUINO_X86__ support */ #ifnd...
4,619
C++
.h
127
32.944882
270
0.689165
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,885
spi.h
dridri_bcflight/flight/links/RF24/utility/spi.h
/* * TMRh20 2015 * SPI layer for RF24 <-> BCM2835 */ /** * @file spi.h * \cond HIDDEN_SYMBOLS * Class declaration for SPI helper files */ #ifndef _SPI_H_INCLUDED #define _SPI_H_INCLUDED #include <stdint.h> #include <stdio.h> #include <string> using namespace STD; typedef enum { BCM2835_SPI_CS0 = 0, /*...
4,836
C++
.h
117
38.299145
102
0.682012
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,886
RF24_arch_config.h
dridri_bcflight/flight/links/RF24/utility/RF24_arch_config.h
#ifndef __ARCH_CONFIG_H__ #define __ARCH_CONFIG_H__ #define RF24_LINUX #include <stdint.h> #include <stdio.h> #include <time.h> #include <string.h> #include <sys/time.h> #include <stddef.h> // #include "bcm2835.h" // #include "spi.h" #define _SPI spi #if defined SPI_HAS_TRANSACTION && !d...
967
C++
.h
36
23.722222
74
0.682366
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,887
includes.h
dridri_bcflight/flight/links/RF24/utility/includes.h
#ifndef __RF24_INCLUDES_H__ #define __RF24_INCLUDES_H__ #include <unistd.h> #define RF24_RPi #include "RF24_arch_config.h" #ifndef ARDUINO #define HIGH 0x1 #define LOW 0x0 #define millis() (Board::GetTicks()/1000) #define delay(x) usleep(x*1000) #define delayMicroseconds(x) usleep(x) #endif // ARDUINO #end...
323
C++
.h
13
22.923077
41
0.745033
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,888
RF24_arch_config.h
dridri_bcflight/flight/links/RF24/utility/Teensy/RF24_arch_config.h
#if ARDUINO < 100 #include <WProgram.h> #else #include <Arduino.h> #endif #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <string.h> #ifndef ARDUINO // #include <SPI.h> #define _SPI spi #define printf Serial.printf #ifdef SERIAL_DEBUG #define IF_SERIAL_DEBUG(x) ({...
417
C++
.h
20
17.5
34
0.681579
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,889
Gyroscope.h
dridri_bcflight/flight/sensors/Gyroscope.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,061
C++
.h
35
28.457143
72
0.746811
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,890
MPU6050.h
dridri_bcflight/flight/sensors/MPU6050.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
7,584
C++
.h
165
44.193939
135
0.69161
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,891
Sensor.h
dridri_bcflight/flight/sensors/Sensor.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
3,615
C++
.h
102
33.421569
121
0.746568
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,892
SR04.h
dridri_bcflight/flight/sensors/SR04.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,317
C++
.h
40
30.9
78
0.751577
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,893
LSM303.h
dridri_bcflight/flight/sensors/LSM303.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,076
C++
.h
62
31.677419
78
0.748122
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,894
Altimeter.h
dridri_bcflight/flight/sensors/Altimeter.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,016
C++
.h
33
28.757576
72
0.747185
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,895
ICM4xxxx.h
dridri_bcflight/flight/sensors/ICM4xxxx.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
6,718
C++
.h
174
36.798851
135
0.767045
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,896
GPS.h
dridri_bcflight/flight/sensors/GPS.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,058
C++
.h
31
32.225806
91
0.735812
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,897
Accelerometer.h
dridri_bcflight/flight/sensors/Accelerometer.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,086
C++
.h
35
29.171429
72
0.752874
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,898
Magnetometer.h
dridri_bcflight/flight/sensors/Magnetometer.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,080
C++
.h
35
29
72
0.751445
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,899
CurrentSensor.h
dridri_bcflight/flight/sensors/CurrentSensor.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,029
C++
.h
33
29.363636
72
0.756566
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,900
LinuxGPS.h
dridri_bcflight/flight/sensors/LinuxGPS.h
#ifndef LINUXGPS_H #define LINUXGPS_H #ifdef BUILD_LinuxGPS #include <gps.h> #endif #include "GPS.h" #include "Lua.h" LUA_CLASS class LinuxGPS : public GPS { public: LUA_EXPORT LinuxGPS(); ~LinuxGPS(); virtual void Calibrate( float dt, bool last_pass ); virtual time_t getTime(); virtual bool Read( float* latit...
534
C++
.h
22
22.636364
87
0.756436
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,901
L3GD20H.h
dridri_bcflight/flight/sensors/L3GD20H.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,548
C++
.h
62
39.516129
81
0.651595
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,902
BMP180.h
dridri_bcflight/flight/sensors/BMP180.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,327
C++
.h
41
30.365854
78
0.731402
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,903
BMP280.h
dridri_bcflight/flight/sensors/BMP280.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,355
C++
.h
50
25.06
72
0.743431
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,904
Voltmeter.h
dridri_bcflight/flight/sensors/Voltmeter.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,005
C++
.h
33
28.636364
72
0.750518
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,905
ADS1015.h
dridri_bcflight/flight/sensors/ADS1015.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,140
C++
.h
38
28.052632
72
0.752285
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,906
FakeGyroscope.h
dridri_bcflight/flight/sensors/fake_sensors/FakeGyroscope.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,170
C++
.h
34
32.441176
94
0.753764
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,907
FakeAccelerometer.h
dridri_bcflight/flight/sensors/fake_sensors/FakeAccelerometer.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,203
C++
.h
34
33.411765
98
0.760757
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,908
SmartAudio.h
dridri_bcflight/flight/peripherals/SmartAudio.h
#pragma once #include <stdint.h> #include "Serial.h" LUA_CLASS class SmartAudio { public: SmartAudio( Serial* bus, uint8_t txpin, bool frequency_cmd_supported = false ); LUA_EXPORT SmartAudio(); ~SmartAudio(); void setStopBits( uint8_t tx, uint8_t rx ); LUA_EXPORT void Connect(); LUA_EXPORT void Update(); ...
1,332
C++
.h
39
32.128205
81
0.76324
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,909
LEDStrip.h
dridri_bcflight/flight/peripherals/LEDStrip.h
#ifndef LEDSTRIP_H #define LEDSTRIP_H #include <stdint.h> class LEDStrip { public: LEDStrip(); virtual ~LEDStrip(); virtual void SetLEDColor( uint32_t led, uint8_t r, uint8_t g, uint8_t b ) = 0; virtual void Update() = 0; }; #endif // LEDSTRIP_H
254
C++
.h
12
19.5
79
0.722689
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,910
WS2812.h
dridri_bcflight/flight/peripherals/WS2812.h
#ifndef WS2812_H #define WS2812_H #include "LEDStrip.h" #include <PWM.h> class WS2812 : public LEDStrip { public: WS2812( uint8_t gpio_pin, uint32_t leds_count ); ~WS2812(); void SetLEDColor( uint32_t led, uint8_t r, uint8_t g, uint8_t b ); void Update(); private: typedef struct rgb_s { uint8_t r; uint8_t ...
444
C++
.h
23
17.347826
67
0.710843
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,911
AlsaMic.h
dridri_bcflight/flight/audio/AlsaMic.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,711
C++
.h
60
26.666667
72
0.752747
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,912
Microphone.h
dridri_bcflight/flight/audio/Microphone.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
886
C++
.h
28
29.75
72
0.751756
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,913
Motor.h
dridri_bcflight/flight/motors/Motor.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,806
C++
.h
48
35.6875
113
0.735968
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,914
OneShot42.h
dridri_bcflight/flight/motors/OneShot42.h
#ifndef ONESHOT42_H #define ONESHOT42_H #include <PWM.h> #include "Motor.h" class Main; class OneShot42 : public Motor { public: OneShot42( uint32_t pin, int us_min = 42, int us_max = 84-4 ); ~OneShot42(); virtual void Disarm(); virtual void Disable(); static Motor* Instanciate( Config* config, const string& ...
575
C++
.h
24
22.125
67
0.746324
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,915
OneShot125.h
dridri_bcflight/flight/motors/OneShot125.h
#ifndef ONESHOT125_H #define ONESHOT125_H #include <PWM.h> #include <Lua.h> #include "Motor.h" class Main; LUA_CLASS class OneShot125 : public Motor { public: OneShot125( uint32_t pin, int us_min = 125, int us_max = 250-8, PWM* pwm = nullptr ); LUA_EXPORT OneShot125( const LuaValue& pin ); ~OneShot125(); virtua...
659
C++
.h
25
24.56
86
0.744817
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,916
PWMProxy.h
dridri_bcflight/flight/motors/PWMProxy.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,400
C++
.h
44
29.840909
111
0.74536
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,917
DShot.h
dridri_bcflight/flight/motors/DShot.h
#ifndef DSHOT_H #define DSHOT_H #include <PWM.h> #include "Motor.h" class DShotDriver; LUA_CLASS class DShot : public Motor { public: LUA_EXPORT DShot( uint32_t pin ); ~DShot(); virtual void Disarm(); virtual void Disable(); virtual void Beep( uint8_t beepMode = 0 ); protected: virtual void setSpeedRaw( floa...
414
C++
.h
19
20.052632
63
0.748072
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,918
BrushlessPWM.h
dridri_bcflight/flight/motors/BrushlessPWM.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,256
C++
.h
38
31.105263
79
0.74876
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,919
mailbox.h
dridri_bcflight/flight/boards/rpi/mailbox.h
/* Copyright (c) 2012, Broadcom Europe Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
3,580
C++
.h
60
57.716667
164
0.776669
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,920
DShotDriver.h
dridri_bcflight/flight/boards/rpi/DShotDriver.h
#pragma once #include <stdint.h> #include <map> #define DSHOT_MAX_OUTPUTS 8 class DShotDriver { public: static DShotDriver* instance( bool create_new = true ); void setPinValue( uint32_t pin, uint16_t value, bool telemetry = false ); void disablePinValue( uint32_t pin ); void Update(); void Kill() noexcept;...
872
C++
.h
33
24.333333
77
0.749698
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,921
PWM.h
dridri_bcflight/flight/boards/rpi/PWM.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
5,657
C++
.h
186
27.467742
167
0.708954
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,922
Board.h
dridri_bcflight/flight/boards/rpi/Board.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
3,058
C++
.h
92
31.173913
99
0.757473
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,923
GPIO.h
dridri_bcflight/flight/boards/rpi/GPIO.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,842
C++
.h
73
23.027397
81
0.712259
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,924
Serial.h
dridri_bcflight/flight/boards/rpi/Serial.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,503
C++
.h
45
31.466667
88
0.734807
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,925
Mutex.h
dridri_bcflight/flight/boards/rpi/Mutex.h
#ifndef MUTEX_H #define MUTEX_H #include <mutex> class Mutex { public: Mutex(); ~Mutex(); void Lock(); void Unlock(); void lock(); void unlock(); protected: std::mutex mMutex; }; #endif // MUTEX_H
208
C++
.h
16
11.3125
19
0.702128
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,926
I2C.h
dridri_bcflight/flight/boards/rpi/I2C.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,378
C++
.h
45
28.688889
72
0.731118
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,927
Servo.h
dridri_bcflight/flight/boards/rpi/Servo.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,090
C++
.h
37
27.540541
72
0.735687
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,928
DShot_dead.h
dridri_bcflight/flight/boards/rpi/DShot_dead.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,864
C++
.h
89
29.988764
91
0.73314
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,929
GLContext.h
dridri_bcflight/flight/boards/rpi/GLContext.h
#ifndef GLCONTEXT_H #define GLCONTEXT_H #include <bcm_host.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <GLES2/gl2.h> #include <xf86drm.h> #include <xf86drmMode.h> #include <gbm.h> #include <vector> #include <list> #include <map> #include <functional> #include <mutex> #include "Thread.h" #include "DRMFrame...
1,850
C++
.h
68
25.205882
123
0.758211
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,930
Thread.h
dridri_bcflight/flight/boards/rpi/Thread.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,592
C++
.h
54
27.62963
119
0.729535
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,931
DMArpi.h
dridri_bcflight/flight/boards/rpi/DMArpi.h
#ifndef DMA_H #define DMA_H #include <stdint.h> #include <map> typedef struct dma_cb_s { uint32_t info; uint32_t src; uint32_t dst; uint32_t length; uint32_t stride; uint32_t next; uint32_t pad[2]; } dma_cb_t; class DMArpi { public: DMArpi( uint32_t commands_count = 1 ); ~DMArpi(); protected: struct { ...
863
C++
.h
41
18.97561
53
0.723798
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,932
SPI.h
dridri_bcflight/flight/boards/rpi/SPI.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,826
C++
.h
57
30.052632
107
0.71096
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,933
ThreadBase.h
dridri_bcflight/flight/boards/common/ThreadBase.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,892
C++
.h
66
26.666667
73
0.751518
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,934
Bus.h
dridri_bcflight/flight/boards/common/Bus.h
#ifndef BUS_H #define BUS_H #include <stdint.h> #include "Vector.h" #include <string> #include <list> #include <vector> class Bus { public: Bus(); virtual ~Bus(); virtual int Connect() = 0; virtual int Read( void* buf, uint32_t len ) = 0; virtual int Write( const void* buf, uint32_t len ) = 0; virtual int Rea...
1,102
C++
.h
33
31.545455
69
0.697455
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,935
DShotDriver.h
dridri_bcflight/flight/boards/generic/DShotDriver.h
#pragma once #include <stdint.h> #include <map> #define DSHOT_MAX_OUTPUTS 8 class DShotDriver { public: static DShotDriver* instance( bool create_new = true ); void setPinValue( uint32_t pin, uint16_t value, bool telemetry = false ); void disablePinValue( uint32_t pin ); void Update(); void Kill() noexcept;...
367
C++
.h
16
21
74
0.755102
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,936
PWM.h
dridri_bcflight/flight/boards/generic/PWM.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,013
C++
.h
30
31.833333
115
0.741044
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,937
Board.h
dridri_bcflight/flight/boards/generic/Board.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,455
C++
.h
72
32.027778
100
0.748098
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,938
GPIO.h
dridri_bcflight/flight/boards/generic/GPIO.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,289
C++
.h
49
24.163265
81
0.736415
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,939
Serial.h
dridri_bcflight/flight/boards/generic/Serial.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,312
C++
.h
42
29.309524
72
0.733333
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,941
I2C.h
dridri_bcflight/flight/boards/generic/I2C.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,259
C++
.h
41
28.780488
72
0.728701
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,942
Servo.h
dridri_bcflight/flight/boards/generic/Servo.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,078
C++
.h
36
28.027778
72
0.735776
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,943
Thread.h
dridri_bcflight/flight/boards/generic/Thread.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,555
C++
.h
53
27.490566
119
0.729712
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,944
SPI.h
dridri_bcflight/flight/boards/generic/SPI.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,684
C++
.h
53
29.735849
96
0.705302
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,945
Debug.h
dridri_bcflight/libdebug/Debug.h
#ifndef DEBUG_H #define DEBUG_H #include <string.h> #include <sys/time.h> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <typeinfo> #include <mutex> #include <tuple> #include <pthread.h> #include <cxxabi.h> #include <chrono> #include <map> class Debug { public: typedef enum { ...
10,325
C++
.h
298
32.087248
196
0.615654
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,947
LuaInterface.h
dridri_bcflight/libluacore/src/LuaInterface.h
#ifndef LUA_INTERFACE_H #define LUA_INTERFACE_H #include "Lua.h" class LuaInterface : public LuaValue { private: template< class C, size_t... S > static C* unpack_vector( const std::vector<LuaValue>& vec, std::index_sequence<S...> ) { return new C(vec[S]...); } template< class C, size_t size > static C* unpack...
2,823
C++
.h
89
28.292135
146
0.627206
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,948
Lua.h
dridri_bcflight/libluacore/src/Lua.h
#ifndef LUA_H #define LUA_H #include <unistd.h> #include <string.h> #include <vector> #include <map> #include <list> #include <string> #include <type_traits> #include <functional> #include <utility> #include <cmath> #include <atomic> #include <set> #include <iostream> #include <mutex> extern "C" { #include <lua.h> #...
21,812
C++
.h
620
32.256452
255
0.660739
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,949
LuaObject.h
dridri_bcflight/libluacore/src/LuaObject.h
#ifndef LUAOBJECT_H #define LUAOBJECT_H #include "Lua.h" class LuaObject { public: LuaObject( Lua* state ); ~LuaObject(); protected: Lua* mState; int64_t mReference; }; #endif // LUAOBJECT_H
199
C++
.h
13
13.692308
25
0.758242
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,950
Socket.h
dridri_bcflight/joystick/Socket.h
#ifndef SOCKET_H #define SOCKET_H #include <string> #include <netinet/in.h> class Socket { public: typedef enum { Server, Client } SocketType; typedef enum { TCP, UDP, UDPLite } PortType; Socket(); Socket( uint16_t port, PortType type = TCP ); Socket( const std::string& host, uint16_t port, PortType...
734
C++
.h
35
18.914286
71
0.726879
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,951
BlackBox.h
dridri_bcflight/controller_pc/BlackBox.h
#ifndef BLACKBOX_H #define BLACKBOX_H #include <QtWidgets/QWidget> #include <QtWidgets/QTableView> #include <QAbstractTableModel> class BlackBoxData : public QAbstractTableModel { Q_OBJECT public: BlackBoxData( QObject* parent ); int rowCount( const QModelIndex& parent = QModelIndex() ) const; int columnCount( c...
981
C++
.h
39
23.358974
81
0.78172
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,952
VideoEditor.h
dridri_bcflight/controller_pc/VideoEditor.h
#ifndef VIDEOEDITOR_H #define VIDEOEDITOR_H #include <QtWidgets/QMainWindow> #include <QtWidgets/QWidget> #include <QtWidgets/QTreeWidgetItem> #include <QtCore/QFile> #include <QtCore/QThread> #include <vector> #include <fstream> #include <iostream> extern "C" { class ISVCDecoder; class ISVCEncoder; } namespace Ui {...
2,986
C++
.h
137
19.29927
106
0.695898
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,955
Stream.h
dridri_bcflight/controller_pc/Stream.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,753
C++
.h
106
23.990566
72
0.759772
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,956
MainWindow.h
dridri_bcflight/controller_pc/MainWindow.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * * T...
4,042
C++
.h
139
27.107914
84
0.78553
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,957
ControllerPC.h
dridri_bcflight/controller_pc/ControllerPC.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * * T...
1,766
C++
.h
64
25.671875
72
0.768546
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,958
Config.h
dridri_bcflight/controller_pc/Config.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,188
C++
.h
40
27.8
87
0.753292
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,959
VideoViewer.h
dridri_bcflight/controller_pc/ui/VideoViewer.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,129
C++
.h
81
24.358025
72
0.768928
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,960
HStatusBar.h
dridri_bcflight/controller_pc/ui/HStatusBar.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,170
C++
.h
38
28.842105
72
0.759786
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,961
ieee80211_radiotap.h
dridri_bcflight/librawwifi++/ieee80211_radiotap.h
/* $FreeBSD: src/sys/net80211/ieee80211_radiotap.h,v 1.5 2005/01/22 20:12:05 sam Exp $ */ /* $NetBSD: ieee80211_radiotap.h,v 1.11 2005/06/22 06:16:02 dyoung Exp $ */ /*- * Copyright (c) 2003, 2004 David Young. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificati...
10,139
C++
.h
256
37.210938
89
0.692924
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,962
RawWifi.h
dridri_bcflight/librawwifi++/RawWifi.h
#pragma once #include <stdint.h> #include <pcap.h> #include <string> #include <mutex> #include "PcapHandler.h" #include "ieee80211_radiotap.h" #define RAWWIFI_MAX_USER_PACKET_LENGTH 1450 // same as MTU #define RAWWIFI_MAX_PACKET_PER_BLOCK 128 namespace rawwifi { class RawWifi { public: typedef enum { RX_FAST =...
3,240
C++
.h
107
27.82243
165
0.742692
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,963
PcapHandler.h
dridri_bcflight/librawwifi++/PcapHandler.h
#pragma once #include <stdint.h> #include <pcap.h> #include <string> namespace rawwifi { class PcapHandler { public: PcapHandler( const std::string& device, uint8_t port, bool blocking, int32_t read_timeout_ms = -1 ); ~PcapHandler(); void CompileFilter(); pcap_t* getPcap() const { return mPcap; } uint8_t get...
593
C++
.h
22
25.090909
101
0.746454
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,964
WifiInterfaceLinux.h
dridri_bcflight/librawwifi++/WifiInterfaceLinux.h
#pragma once #include "WifiInterface.h" #include "nl80211.h" struct nl_msg; namespace rawwifi { class WifiInterfaceLinux : public WifiInterface { public: WifiInterfaceLinux( const std::string name, uint32_t channel, uint32_t txpower, uint32_t bHT, uint32_t bitrate ); virtual ~WifiInterfaceLinux(); protected: ty...
1,124
C++
.h
30
35.266667
114
0.751152
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,965
constants.h
dridri_bcflight/librawwifi++/constants.h
#pragma once #define IEEE80211_RADIOTAP_F_CFP 0x01 // sent/received during CFP #define IEEE80211_RADIOTAP_F_SHORTPRE 0x02 // sent/received with short preamble #define IEEE80211_RADIOTAP_F_WEP 0x04 // sent/received with WEP encryption #define IEEE80211_RADIOTAP_F_FRAG 0x08 // sent/received with fragmentation #defin...
1,714
C++
.h
36
45.944444
117
0.779438
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,966
radiotap.h
dridri_bcflight/librawwifi++/radiotap.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,995
C++
.h
56
33.553571
79
0.76696
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,967
nl80211.h
dridri_bcflight/librawwifi++/nl80211.h
#ifndef __LINUX_NL80211_H #define __LINUX_NL80211_H /* * 802.11 netlink interface public header * * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> * Copyright 2008 Michael Wu <flamingice@sourmilk.net> * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com> * Copyright 2008 Michael Buesch <m@bues.ch>...
199,797
C++
.h
4,377
43.642221
83
0.768882
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
754,968
WifiInterface.h
dridri_bcflight/librawwifi++/WifiInterface.h
#pragma once #include <stdint.h> #include <string> namespace rawwifi { class WifiInterface { public: WifiInterface( const std::string name, uint32_t channel, uint32_t txpower, uint32_t bHT, uint32_t bitrate ) {} virtual ~WifiInterface() {} protected: std::string mName; uint32_t mChannel; uint32_t mTxpower; u...
381
C++
.h
16
22
111
0.766017
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,969
Vector.h
dridri_bcflight/libcontroller/Vector.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
7,016
C++
.h
255
24.803922
95
0.539631
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,970
Controller.h
dridri_bcflight/libcontroller/Controller.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
7,498
C++
.h
216
32.657407
124
0.756652
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,971
PT1.h
dridri_bcflight/libcontroller/PT1.h
#pragma once #include "Filter.h" template<typename V> class PT1 : public Filter<V> { public: PT1( const V& cutoff ) : mCutOff( cutoff ), mState( V() ) {} virtual V filter( const V& input, float dt ) { V RC = 1.0f / ( float(2.0f * M_PI) * mCutOff ); V coeff = dt / ( RC + dt ); mState += mul( coeff, ( input - ...
993
C++
.h
40
22.925
109
0.640212
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,972
Filter.h
dridri_bcflight/libcontroller/Filter.h
#pragma once #include "Vector.h" template<typename V> class Filter { public: virtual ~Filter() {} virtual V filter( const V& input, float dt ) = 0; virtual V state() = 0; };
180
C++
.h
8
20.75
50
0.698225
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,973
ControllerBase.h
dridri_bcflight/libcontroller/ControllerBase.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
5,987
C++
.h
220
24.531818
147
0.705749
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,974
Thread.h
dridri_bcflight/libcontroller/Thread.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,907
C++
.h
68
26.132353
119
0.737678
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,975
Socket.h
dridri_bcflight/libcontroller/links/Socket.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
1,600
C++
.h
57
26.087719
72
0.741514
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,976
SX127x.h
dridri_bcflight/libcontroller/links/SX127x.h
#ifndef SX127X_H #define SX127X_H #include <atomic> #include <mutex> #include <list> #include <condition_variable> #include "Link.h" class Main; class SPI; class SX127x : public Link { public: typedef enum { FSK, LoRa, } Modem; typedef struct { char device[64]; int32_t resetPin; int32_t txPin; int32_...
3,572
C++
.h
158
20.240506
84
0.742049
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,977
Link.h
dridri_bcflight/libcontroller/links/Link.h
/* * BCFlight * Copyright (C) 2016 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
2,828
C++
.h
90
29.511111
91
0.720956
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,978
Serial.h
dridri_bcflight/libcontroller/links/Serial.h
#ifndef SERIAL_H #define SERIAL_H #include "Link.h" class Serial : public Link { public: Serial( const std::string& device, uint32_t baudrate = 115200 ); ~Serial(); int Connect(); void setFrequency( float f ); int setBlocking( bool blocking ); void setRetriesCount( int retries ); int retriesCount() const; in...
644
C++
.h
23
26.130435
84
0.717532
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,979
RawWifi.h
dridri_bcflight/libcontroller/links/RawWifi.h
#pragma once #include "Link.h" namespace rawwifi { class RawWifi; class WifiInterface; }; class RawWifi : public Link { public: RawWifi( const std::string& device, int16_t out_port, int16_t in_port = -1, int read_timeout_ms = -1 ); virtual ~RawWifi(); virtual int Connect(); virtual int setBlocking( bool bloc...
790
C++
.h
26
28.423077
104
0.752972
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,980
nRF24L01.h
dridri_bcflight/libcontroller/links/nRF24L01.h
/* * BCFlight * Copyright (C) 2017 Adrien Aubry (drich) * * 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 3 of the License, or * (at your option) any later version. * *...
3,233
C++
.h
118
25.29661
198
0.730297
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,982
spi.h
dridri_bcflight/libcontroller/links/RF24/utility/spi.h
/* * TMRh20 2015 * SPI layer for RF24 <-> BCM2835 */ /** * @file spi.h * \cond HIDDEN_SYMBOLS * Class declaration for SPI helper files */ #ifndef _SPI_H_INCLUDED #define _SPI_H_INCLUDED #include <string> #include <stdint.h> #include <stdio.h> #include <linux/spi/spidev.h> typedef enum { BCM2835_SPI_CS0 = 0...
4,849
C++
.h
117
38.418803
102
0.681683
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,983
RF24_arch_config.h
dridri_bcflight/libcontroller/links/RF24/utility/RF24_arch_config.h
#ifndef __ARCH_CONFIG_H__ #define __ARCH_CONFIG_H__ #define RF24_LINUX #include <stdint.h> #include <stdio.h> #include <time.h> #include <string.h> #include <sys/time.h> #include <stddef.h> // #include "bcm2835.h" // #include "spi.h" #define _SPI spi #if defined SPI_HAS_TRANSACTION && !d...
809
C++
.h
32
21.96875
74
0.667546
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,984
includes.h
dridri_bcflight/libcontroller/links/RF24/utility/includes.h
#ifndef __RF24_INCLUDES_H__ #define __RF24_INCLUDES_H__ #include <unistd.h> #define RF24_RPi #include "RF24_arch_config.h" #ifndef HIGH #define HIGH 0x1 #endif #ifndef LOW #define LOW 0x0 #endif #define millis() (Thread::GetTick()) #define delay(x) usleep(x*1000) #define delayMicroseconds(x) usleep(x) #end...
323
C++
.h
15
19.733333
38
0.75
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false