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,643
main.cc
nucleron_matiec/main.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU G...
11,142
C++
.cc
227
45.325991
177
0.619306
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,645
absyntax.cc
nucleron_matiec/absyntax/absyntax.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU G...
14,740
C++
.cc
327
40.021407
120
0.569774
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,646
create_enumtype_conversion_functions.cc
nucleron_matiec/stage1_2/create_enumtype_conversion_functions.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2009-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2012 Manuele Conti (conti.ma@alice.it) * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
11,103
C++
.cc
286
34.86014
163
0.653664
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,648
remove_forward_dependencies.cc
nucleron_matiec/stage3/remove_forward_dependencies.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2014 Mario de Sousa (msousa@fe.up.pt) * * 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 Foundatio...
16,651
C++
.cc
249
63.53012
211
0.634823
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,651
flow_control_analysis.cc
nucleron_matiec/stage3/flow_control_analysis.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2012 Mario de Sousa (msousa@fe.up.pt) * * 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 Foundatio...
15,671
C++
.cc
341
43.929619
159
0.680576
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,652
forced_narrow_candidate_datatypes.cc
nucleron_matiec/stage3/forced_narrow_candidate_datatypes.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2012 Mario de Sousa (msousa@fe.up.pt) * * 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 Foundatio...
12,538
C++
.cc
237
45.312236
161
0.562423
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,657
case_element_iterator.cc
nucleron_matiec/absyntax_utils/case_element_iterator.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
4,662
C++
.cc
153
27.862745
95
0.676195
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,659
array_dimension_iterator.cc
nucleron_matiec/absyntax_utils/array_dimension_iterator.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
4,502
C++
.cc
118
35.805085
129
0.69642
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,661
search_base_type.cc
nucleron_matiec/absyntax_utils/search_base_type.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
20,867
C++
.cc
358
56.215084
174
0.678285
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,663
search_fb_instance_decl.cc
nucleron_matiec/absyntax_utils/search_fb_instance_decl.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
4,983
C++
.cc
127
37.086614
80
0.669835
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,664
type_initial_value.cc
nucleron_matiec/absyntax_utils/type_initial_value.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
20,894
C++
.cc
375
53.736
209
0.694828
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,666
search_varfb_instance_type.cc
nucleron_matiec/absyntax_utils/search_varfb_instance_type.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
18,832
C++
.cc
377
47.352785
157
0.681642
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,667
search_var_instance_decl.cc
nucleron_matiec/absyntax_utils/search_var_instance_decl.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
22,616
C++
.cc
562
37.843416
175
0.685883
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,678
generate_iec.cc
nucleron_matiec/stage4/generate_iec/generate_iec.cc
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
69,505
C++
.cc
1,857
34.898223
252
0.647622
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,681
iec_std_lib.h
nucleron_matiec/lib/C/iec_std_lib.h
/* * copyright 2008 Edouard TISSERANT * copyright 2011 Mario de Sousa (msousa@fe.up.pt) * * Offered to the public under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is...
25,489
C++
.h
667
33.283358
193
0.552869
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,682
accessor.h
nucleron_matiec/lib/C/accessor.h
#ifndef __ACCESSOR_H #define __ACCESSOR_H #define __INITIAL_VALUE(...) __VA_ARGS__ // variable declaration macros #define __DECLARE_VAR(type, name)\ __IEC_##type##_t name; #define __DECLARE_GLOBAL(type, domain, name)\ __IEC_##type##_t domain##__##name;\ static __IEC_##type##_t *GLOBAL__##name = &(domain##__##name)...
4,874
C++
.h
124
37.185484
96
0.629591
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
754,683
fill_candidate_datatypes.hh
nucleron_matiec/stage3/fill_candidate_datatypes.hh
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2009-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2012 Manuele Conti (manuele.conti@sirius-es.it) * Copyright (C) 2012 Matteo Facchinetti (matteo.facchinetti@sirius-es.it) * * * This progra...
18,269
C++
.h
366
45.20765
213
0.594889
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,684
print_datatypes_error.hh
nucleron_matiec/stage3/print_datatypes_error.hh
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2009-2011 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2011-2012 Manuele Conti (manuele.conti@sirius-es.it) * Copyright (C) 2011-2012 Matteo Facchinetti (matteo.facchinetti@sirius-es.it) * * * This progra...
13,715
C++
.h
304
40.4375
155
0.58052
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,685
narrow_candidate_datatypes.hh
nucleron_matiec/stage3/narrow_candidate_datatypes.hh
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2009-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2012 Manuele Conti (manuele.conti@sirius-es.it) * Copyright (C) 2012 Matteo Facchinetti (matteo.facchinetti@sirius-es.it) * * * This progra...
17,479
C++
.h
349
45.498567
193
0.597528
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,686
forced_narrow_candidate_datatypes.hh
nucleron_matiec/stage3/forced_narrow_candidate_datatypes.hh
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2012 Mario de Sousa (msousa@fe.up.pt) * * * 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 Founda...
2,893
C++
.h
71
37.830986
103
0.651038
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,687
search_base_type.hh
nucleron_matiec/absyntax_utils/search_base_type.hh
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2003-2012 Mario de Sousa (msousa@fe.up.pt) * Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
12,669
C++
.h
262
44.416031
119
0.639075
nucleron/matiec
132
47
5
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
754,689
main.cpp
dridri_bcflight/controller_rc/main.cpp
/* * 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,907
C++
.cpp
134
41.686567
196
0.683689
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,690
Config.cpp
dridri_bcflight/controller_rc/Config.cpp
/* * 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. * *...
8,847
C++
.cpp
315
25.530159
277
0.590598
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,691
GlobalUI.cpp
dridri_bcflight/controller_rc/ui/GlobalUI.cpp
#include <iostream> #include <unistd.h> #include <linux/input.h> #include <QtCore/QtPlugin> #include "GlobalUI.h" #include "MainWindow.h" #include "Controller.h" #include "Config.h" #ifndef BOARD_generic // Q_IMPORT_PLUGIN( QLinuxFbIntegrationPlugin ); #endif GlobalUI::GlobalUI( Config* config, Controller* controller...
2,549
C++
.cpp
70
34.085714
151
0.704785
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,692
MainWindow.cpp
dridri_bcflight/controller_rc/ui/MainWindow.cpp
#include <QtWidgets/QGridLayout> #include <QtGui/QFontDatabase> #include <cmath> #include "MainWindow.h" #include "ui_window.h" #include "ui_main.h" #include "ui_calibrate.h" #include "ui_camera.h" #include "ui_network.h" #include "ui_settings.h" #include <links/Socket.h> #ifdef BUILD_rawwifi #include <links/RawWifi.h>...
25,140
C++
.cpp
543
43.909761
192
0.716949
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,693
MCP320x.cpp
dridri_bcflight/controller_rc/ADCs/MCP320x.cpp
/* * 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,784
C++
.cpp
92
27.934783
101
0.602689
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,694
SPI.cpp
dridri_bcflight/controller_rc/boards/rpi/SPI.cpp
/* * 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,657
C++
.cpp
87
28.321839
196
0.637681
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,695
GPIO.cpp
dridri_bcflight/controller_rc/boards/rpi/GPIO.cpp
/* * 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,423
C++
.cpp
103
30.902913
101
0.65303
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,696
ControllerClient.cpp
dridri_bcflight/controller_rc/boards/rpi/ControllerClient.cpp
/* * 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. * *...
11,132
C++
.cpp
342
30.230994
109
0.646204
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,697
Socket.cpp
dridri_bcflight/controller_rc/boards/rpi/Socket.cpp
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/fcntl.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <unistd.h> /* close */ #include <netdb.h> /* gethostbyname */ #define INVALID_SOCKET -1 #de...
5,196
C++
.cpp
175
27.017143
133
0.630735
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,698
ControllerClient.cpp
dridri_bcflight/controller_rc/boards/generic/ControllerClient.cpp
/* * 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,074
C++
.cpp
34
29.823529
80
0.756286
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,699
Controller.cpp
dridri_bcflight/flight/Controller.cpp
/* * 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. * *...
39,622
C++
.cpp
1,387
24.33814
128
0.601059
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,700
Config.cpp
dridri_bcflight/flight/Config.cpp
/* * 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. * *...
8,738
C++
.cpp
298
27.080537
140
0.620022
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,701
Console.cpp
dridri_bcflight/flight/Console.cpp
#ifdef SYSTEM_NAME_Linux #include <termios.h> #include <sys/ioctl.h> #endif #include <regex> #include "Console.h" #include "Config.h" Console::Console( Config* config ) : Thread( "console" ) , mConfig( config ) { #ifdef SYSTEM_NAME_Linux if ( getenv("TERM") ) { struct termios term; ioctl(0, TCGETS, &term ); ...
5,814
C++
.cpp
198
25.19697
140
0.548473
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,703
Matrix.cpp
dridri_bcflight/flight/Matrix.cpp
/* * 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,583
C++
.cpp
291
23.80756
117
0.561097
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,704
Main.cpp
dridri_bcflight/flight/Main.cpp
/* 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. * * Th...
11,682
C++
.cpp
438
24.424658
168
0.642595
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,705
PowerThread.cpp
dridri_bcflight/flight/PowerThread.cpp
/* * 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. * *...
8,560
C++
.cpp
265
29.758491
103
0.670376
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,706
BlackBox.cpp
dridri_bcflight/flight/BlackBox.cpp
#include <unistd.h> #ifdef SYSTEM_NAME_Linux #include <dirent.h> #endif #include <Board.h> #include <Debug.h> #include "BlackBox.h" BlackBox::BlackBox() : Thread( "BlackBox" ) , mID( 0 ) , mFile( nullptr ) { #ifdef SYSTEM_NAME_Linux char filename[256]; DIR* dir; struct dirent* ent; if ( ( dir = opendir( "/var/B...
4,430
C++
.cpp
184
21.896739
82
0.625952
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,707
EKF.cpp
dridri_bcflight/flight/stabilizer/EKF.cpp
/* * 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,463
C++
.cpp
82
28.036585
87
0.67161
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,708
Stabilizer.cpp
dridri_bcflight/flight/stabilizer/Stabilizer.cpp
/* * 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. * *...
9,506
C++
.cpp
332
26.436747
168
0.700044
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,709
IMU.cpp
dridri_bcflight/flight/stabilizer/IMU.cpp
/* * 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. * *...
13,109
C++
.cpp
483
24.610766
210
0.668846
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,710
DynamicNotchFilter.cpp
dridri_bcflight/flight/stabilizer/DynamicNotchFilter.cpp
#include <cassert> #include <Main.h> #include <IMU.h> #include "DynamicNotchFilter.h" #include "BiquadFilter.h" #include <fftw3.h> template<typename V> _DynamicNotchFilterBase<V>::_DynamicNotchFilterBase( uint8_t n ) : Filter<V>() , mMinFreq( 100 ) , mMaxFreq( 600 ) , mN( n ) , mState( V() ) , mFixedDt( 0.0f ) ...
10,821
C++
.cpp
281
35.455516
137
0.651892
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,711
MahonyAHRS.cpp
dridri_bcflight/flight/stabilizer/MahonyAHRS.cpp
#include "MahonyAHRS.h" #include <Debug.h> MahonyAHRS::MahonyAHRS( float kp, float ki ) : mRotationMatrix( Matrix( 3, 3 ) ) , mState( Quaternion() ) , mIntegral( Vector3f() ) , mKp( kp ) , mKi( ki ) { fDebug( kp, ki ); memset( mRotationMatrix.m, 0, sizeof( float ) * 9 ); } MahonyAHRS::~MahonyAHRS() { } voi...
3,001
C++
.cpp
92
29.576087
103
0.632802
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,712
LinuxCamera.cpp
dridri_bcflight/flight/video/LinuxCamera.cpp
#include <sys/fcntl.h> #include <sys/ioctl.h> #include <linux/v4l2-controls.h> #include <linux/videodev2.h> #include "LinuxCamera.h" #include "LiveOutput.h" #include "Debug.h" #include <thread> #include <sys/mman.h> std::unique_ptr<libcamera::CameraManager> LinuxCamera::sCameraManager = nullptr; class LibCameraStre...
24,191
C++
.cpp
694
32.105187
248
0.714261
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,713
LiveOutput.cpp
dridri_bcflight/flight/video/LiveOutput.cpp
#include "LiveOutput.h" LiveOutput::LiveOutput() : VideoEncoder() { } LiveOutput::~LiveOutput() { } void LiveOutput::Setup() { } void LiveOutput::EnqueueBuffer( size_t size, void* mem, int64_t timestamp_us, int fd ) { // Nothing to do here (void)size; (void)mem; (void)timestamp_us; (void)fd; }
308
C++
.cpp
19
14.526316
86
0.72695
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,714
DRMSurface.cpp
dridri_bcflight/flight/video/DRMSurface.cpp
#include <xf86drm.h> #include <xf86drmMode.h> #include <stdio.h> #include <list> #include <algorithm> #include "DRMSurface.h" #include "Debug.h" std::list< uint32_t > usedPlanes; DRMSurface::DRMSurface( int32_t zindex ) : mZindex( zindex ) , mKmsSet( false ) { drmModeRes* resources = drmModeGetResources( drmFd() ...
4,002
C++
.cpp
97
38.525773
158
0.661095
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,715
AvcodecEncoder.cpp
dridri_bcflight/flight/video/AvcodecEncoder.cpp
extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavutil/pixfmt.h> #include <libavutil/frame.h> #include <libavutil/hwcontext_drm.h> #include <libavutil/imgutils.h> #include <libavutil/opt.h> } #include "AvcodecEncoder.h" #include "Debug.h" #include <libdrm/drm_fourcc.h>...
3,667
C++
.cpp
108
31.796296
133
0.705483
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,716
DRM.cpp
dridri_bcflight/flight/video/DRM.cpp
#include <sys/fcntl.h> #include <unistd.h> #include <string.h> #include <xf86drm.h> #include <xf86drmMode.h> #include <drm.h> #include <string> #include "DRM.h" #include "Debug.h" int DRM::sDrmFd = -1; int DRM::drmFd() { if ( sDrmFd < 0 ) { for ( int dev = 0; dev <= 1; dev++ ) { std::string device = std::str...
878
C++
.cpp
36
21.166667
93
0.594724
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,717
VideoEncoder.cpp
dridri_bcflight/flight/video/VideoEncoder.cpp
#include "VideoEncoder.h" VideoEncoder::VideoEncoder() : mRecorder( nullptr ) , mLink( nullptr ) , mRecorderTrackId( (uint32_t)-1 ) , mInputWidth( 0 ) , mInputHeight( 0 ) { } VideoEncoder::~VideoEncoder() { } void VideoEncoder::SetInputResolution( int width, int height ) { mInputWidth = width; mInputHeight...
333
C++
.cpp
17
17.823529
62
0.741935
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,718
Camera.cpp
dridri_bcflight/flight/video/Camera.cpp
/* * 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,131
C++
.cpp
41
25.634146
72
0.722479
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,719
RecorderBasic.cpp
dridri_bcflight/flight/video/RecorderBasic.cpp
#ifdef SYSTEM_NAME_Linux #include <dirent.h> #include <string.h> #include "RecorderBasic.h" #include <Board.h> #include "Debug.h" RecorderBasic::RecorderBasic() : Recorder() , Thread( "RecorderBasic" ) , mBaseDirectory( "/var/VIDEO/" ) , mRecordId( 0 ) , mRecordSyncCounter( 0 ) { } RecorderBasic::~RecorderBas...
6,155
C++
.cpp
196
29.086735
146
0.678958
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,720
Recorder.cpp
dridri_bcflight/flight/video/Recorder.cpp
#ifdef SYSTEM_NAME_Linux #include <dirent.h> #include <string.h> #include "Recorder.h" #include <Board.h> #include "Debug.h" std::set<Recorder*> Recorder::sRecorders; Recorder::Recorder() { sRecorders.insert( this ); } Recorder::~Recorder() { } const std::set<Recorder*>& Recorder::recorders() { return sRecor...
358
C++
.cpp
19
17.157895
48
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
754,721
V4L2Encoder.cpp
dridri_bcflight/flight/video/V4L2Encoder.cpp
#include <sys/fcntl.h> #include <poll.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <linux/videodev2.h> #include <map> #include <chrono> #include "V4L2Encoder.h" #include "Socket.h" #include "Debug.h" static constexpr int NUM_INPUT_BUFFERS = 6; static constexpr int NUM_OUTPUT_BUFFERS = 12; static int xi...
12,268
C++
.cpp
361
31.105263
156
0.673528
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,722
RecorderAvformat.cpp
dridri_bcflight/flight/video/RecorderAvformat.cpp
#include <sys/statvfs.h> #include <dirent.h> #include "RecorderAvformat.h" #include "Board.h" #include "Debug.h" #include "Main.h" #include "IMU.h" RecorderAvformat::RecorderAvformat() : Recorder() , Thread( "RecorderAvformat" ) , mRecordStartTick( 0 ) , mRecordStartSystemTick( 0 ) , mActive( false ) , mOutput...
14,090
C++
.cpp
402
32.405473
213
0.675471
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,723
HUD.cpp
dridri_bcflight/flight/video/HUD.cpp
#if ( BUILD_HUD == 1 ) #include <Main.h> #include <RendererHUDNeo.h> #include "Camera.h" #include "HUD.h" #include <GLContext.h> #include <Stabilizer.h> #include <IMU.h> #include <Link.h> #include <Config.h> #include <Sensor.h> #include <peripherals/SmartAudio.h> HUD::HUD() : Thread( "HUD" ) , mGLContext( nullptr ...
6,167
C++
.cpp
180
31.672222
133
0.69869
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,724
DRMFrameBuffer.cpp
dridri_bcflight/flight/video/DRMFrameBuffer.cpp
#include <xf86drm.h> #include <xf86drmMode.h> #include <string.h> #include <string> #include "DRMFrameBuffer.h" #include "Debug.h" DRMFrameBuffer::DRMFrameBuffer( uint32_t width, uint32_t height, uint32_t stride, uint32_t format, uint32_t bufferObjectHandle, int dmaFd ) : mWidth( width ) , mHeight( height ) , mDma...
2,112
C++
.cpp
71
27.352113
139
0.69688
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,725
Multicopter.cpp
dridri_bcflight/flight/frames/Multicopter.cpp
#include <Debug.h> #include <Config.h> #include <Controller.h> #include "IMU.h" #include <motors/BrushlessPWM.h> #include <motors/OneShot125.h> #include <Servo.h> #include <Board.h> #include "Multicopter.h" Multicopter::Multicopter() : Frame() , mMaxSpeed( 1.0f ) , mAirModeTrigger( 1.0f ) , mAirModeSpeed( 0.0f ) ...
4,410
C++
.cpp
140
28.842857
102
0.623613
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,726
Frame.cpp
dridri_bcflight/flight/frames/Frame.cpp
/* * 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,189
C++
.cpp
128
22.828125
93
0.671622
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,727
MultiLink.cpp
dridri_bcflight/flight/links/MultiLink.cpp
#ifdef BUILD_MultiLink #include <../links/Link.h> #include <../links/Link.h> #include <../links/Link.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 Fr...
5,020
C++
.cpp
182
25.247253
102
0.666667
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,728
SX127x.cpp
dridri_bcflight/flight/links/SX127x.cpp
#include <unistd.h> #include "SX127x.h" #include "SX127xRegs.h" #include "SX127xRegs-LoRa.h" #include <Config.h> #include <Debug.h> #include <SPI.h> #include <GPIO.h> #include <Board.h> #include <cmath> #define min( a, b ) ( ( (a) < (b) ) ? (a) : (b) ) #define max( a, b ) ( ( (a) > (b) ) ? (a) : (b) ) #define TICKS (...
40,228
C++
.cpp
1,153
32.213356
320
0.647183
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,729
SBUS.cpp
dridri_bcflight/flight/links/SBUS.cpp
#include "SBUS.h" #include <Config.h> #include <Debug.h> #include <ControllerBase.h> using namespace STD; int SBUS::flight_register( Main* main ) { RegisterLink( "SBUS", &SBUS::Instanciate ); return 0; } Link* SBUS::Instanciate( Config* config, const string& lua_object ) { string stype = config->String( lua_obj...
6,412
C++
.cpp
192
30.645833
151
0.582835
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,730
Link.cpp
dridri_bcflight/flight/links/Link.cpp
/* * 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,248
C++
.cpp
209
23.004785
121
0.645996
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,731
RawWifi.cpp
dridri_bcflight/flight/links/RawWifi.cpp
#include "RawWifi.h" #if (BUILD_RAWWIFI == 1) #include "../librawwifi++/RawWifi.h" #include "../librawwifi++/WifiInterfaceLinux.h" #include <Debug.h> RawWifi::RawWifi() : Link() , Thread( "RawWifi" ) , mDevice( "wlan0" ) , mOutputPort( 0 ) , mInputPort( 1 ) , mChannel( 9 ) , mBlocking( true ) , mRawWifi( nu...
3,619
C++
.cpp
167
19.706587
135
0.700767
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,732
nRF24L01.cpp
dridri_bcflight/flight/links/nRF24L01.cpp
/* * 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. * *...
9,790
C++
.cpp
347
25.786744
159
0.672145
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,733
Socket.cpp
dridri_bcflight/flight/links/Socket.cpp
/* * 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. * *...
8,473
C++
.cpp
306
25.160131
109
0.649032
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,735
spi.cpp
dridri_bcflight/flight/links/RF24/utility/spi.cpp
#include "spi.h" #include <pthread.h> #include <string.h> #include <string> #include <SPI.h> static ::SPI* mSPI = nullptr; static string mSPIDevice = ""; #ifdef SYSTEM_NAME_Linux static pthread_mutex_t spiMutex = PTHREAD_MUTEX_INITIALIZER; #endif nRF24::SPI::SPI() { } nRF24::SPI::~SPI() { } void nRF24::SPI::begi...
2,314
C++
.cpp
114
17.482456
65
0.686924
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,736
BMP180.cpp
dridri_bcflight/flight/sensors/BMP180.cpp
/* * 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,827
C++
.cpp
128
27.90625
82
0.644529
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,737
Gyroscope.cpp
dridri_bcflight/flight/sensors/Gyroscope.cpp
/* * 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. * *...
883
C++
.cpp
30
27.533333
72
0.744982
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,738
Accelerometer.cpp
dridri_bcflight/flight/sensors/Accelerometer.cpp
/* * 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. * *...
907
C++
.cpp
30
28.333333
72
0.752009
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,739
LSM303.cpp
dridri_bcflight/flight/sensors/LSM303.cpp
/* * 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. * *...
4,009
C++
.cpp
127
29.488189
84
0.675943
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,741
Voltmeter.cpp
dridri_bcflight/flight/sensors/Voltmeter.cpp
/* * 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. * *...
808
C++
.cpp
25
30.4
72
0.748395
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,742
LinuxGPS.cpp
dridri_bcflight/flight/sensors/LinuxGPS.cpp
#include "LinuxGPS.h" #include "Debug.h" #include <cmath> #ifdef BUILD_LinuxGPS LinuxGPS::LinuxGPS() : GPS() , mGpsData( nullptr ) { fDebug(); int rc = 0; mGpsData = new struct gps_data_t; memset( mGpsData, 0, sizeof(struct gps_data_t) ); if ( ( rc = gps_open( "localhost", "2947", mGpsData ) ) < 0 ) { gErro...
2,704
C++
.cpp
108
22.564815
188
0.653951
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,743
Sensor.cpp
dridri_bcflight/flight/sensors/Sensor.cpp
/* * 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. * *...
10,033
C++
.cpp
389
23.244216
113
0.631073
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,744
Magnetometer.cpp
dridri_bcflight/flight/sensors/Magnetometer.cpp
/* * 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. * *...
901
C++
.cpp
30
28.133333
72
0.750289
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,745
ADS1015.cpp
dridri_bcflight/flight/sensors/ADS1015.cpp
/* * 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,753
C++
.cpp
136
47.625
117
0.697494
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,746
L3GD20H.cpp
dridri_bcflight/flight/sensors/L3GD20H.cpp
/* * 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,338
C++
.cpp
80
27.2
84
0.70415
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,748
CurrentSensor.cpp
dridri_bcflight/flight/sensors/CurrentSensor.cpp
/* * 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. * *...
828
C++
.cpp
25
31.2
72
0.754693
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,749
MPU6050.cpp
dridri_bcflight/flight/sensors/MPU6050.cpp
/* * 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. * *...
15,215
C++
.cpp
430
32.923256
130
0.654386
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,750
SR04.cpp
dridri_bcflight/flight/sensors/SR04.cpp
/* * 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,295
C++
.cpp
86
24.662791
112
0.698036
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,751
ICM4xxxx.cpp
dridri_bcflight/flight/sensors/ICM4xxxx.cpp
/* * 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. * *...
15,646
C++
.cpp
472
30.663136
117
0.654474
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,752
BMP280.cpp
dridri_bcflight/flight/sensors/BMP280.cpp
/* * 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. * *...
4,604
C++
.cpp
130
33.461538
123
0.659536
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,753
FakeAccelerometer.cpp
dridri_bcflight/flight/sensors/fake_sensors/FakeAccelerometer.cpp
/* * 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,726
C++
.cpp
52
31.192308
117
0.707052
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,754
FakeGyroscope.cpp
dridri_bcflight/flight/sensors/fake_sensors/FakeGyroscope.cpp
/* * 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,685
C++
.cpp
52
30.403846
128
0.702719
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,755
SmartAudio.cpp
dridri_bcflight/flight/peripherals/SmartAudio.cpp
#include "SmartAudio.h" #include "Debug.h" #include <Board.h> #include <GPIO.h> #define CMD_GET_SETTINGS 0x01 #define CMD_SET_POWER 0x02 #define CMD_SET_CHANNEL 0x03 #define CMD_SET_FREQUENCY 0x04 #define CMD_SET_MODE 0x05 // TODO : run in separate thread typedef struct { uint16_t header; uint8_t command; uin...
9,611
C++
.cpp
288
31.184028
110
0.651986
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,756
WS2812.cpp
dridri_bcflight/flight/peripherals/WS2812.cpp
#include <string.h> #include "WS2812.h" WS2812::WS2812( uint8_t gpio_pin, uint32_t leds_count ) : mGPIOPin( gpio_pin ) , mLedsCount( leds_count ) { /* mPWM = new PWM( 14, 10 * 1000 * 1000, 13 * 24, 1, &gpio_pin, 1 ); // mPWM = new PWM( 14, 1 * 1000 * 1000, 13 * 24 + 600, 1, &gpio_pin, 1 ); */ mLedsColors = new rg...
2,592
C++
.cpp
122
18.032787
74
0.485575
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,757
main.cpp
dridri_bcflight/flight/tests/main.cpp
#include <catch2/catch_session.hpp> #include <Debug.h> int main( int argc, char* argv[] ) { Debug::setDebugLevel( Debug::Trace ); Debug::setColors( false ); int result = Catch::Session().run( argc, argv ); return result; }
229
C++
.cpp
9
23.777778
49
0.706422
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,758
test_BiquadFilter.cpp
dridri_bcflight/flight/tests/stabilizer/test_BiquadFilter.cpp
#include <catch2/catch_all.hpp> #include <stabilizer/BiquadFilter.h> #include <random> using namespace Catch::literals; TEST_CASE("BiquadFilter Notch", "[BiquadFilter]") { BiquadFilter<float> filter( 0.707f ); filter.setCenterFrequency( 100.0f ); float input = 1.0f; float output = filter.filter( input, 0.002f )...
8,521
C++
.cpp
190
42.415789
128
0.701602
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,759
Microphone.cpp
dridri_bcflight/flight/audio/Microphone.cpp
/* * 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. * *...
821
C++
.cpp
25
30.92
72
0.752212
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,760
AlsaMic.cpp
dridri_bcflight/flight/audio/AlsaMic.cpp
/* * 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,510
C++
.cpp
187
32.417112
102
0.648631
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,761
BrushlessPWM.cpp
dridri_bcflight/flight/motors/BrushlessPWM.cpp
/* * 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,990
C++
.cpp
72
25.694444
72
0.702105
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,762
OneShot125.cpp
dridri_bcflight/flight/motors/OneShot125.cpp
#include <cmath> #include "OneShot125.h" #include "Config.h" #include "Debug.h" #ifdef BUILD_OneShot125 #if (defined(BOARD_rpi) || defined(BOARD_generic)) // #define TIME_BASE 34500000 // #define SCALE ( TIME_BASE / 1000000 ) // #define STEPS 10000 // #define STEP_US 50 #define TIME_BASE 62500000 #define STEPS ...
2,259
C++
.cpp
96
21.5
98
0.661215
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,763
Motor.cpp
dridri_bcflight/flight/motors/Motor.cpp
/* * 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,659
C++
.cpp
58
26.741379
106
0.716267
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,764
DShot.cpp
dridri_bcflight/flight/motors/DShot.cpp
#include "DShot.h" #include "DShotDriver.h" #ifdef BUILD_DShot DShot::DShot( uint32_t pin ) : Motor() , mDriver( DShotDriver::instance() ) , mPin( pin ) { mDriver->disablePinValue( mPin ); mDriver->Update(); } DShot::~DShot() { } void DShot::setSpeedRaw( float speed, bool force_hw_update ) { if ( speed < 0...
808
C++
.cpp
43
16.837209
60
0.663551
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,765
PWMProxy.cpp
dridri_bcflight/flight/motors/PWMProxy.cpp
/* * 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,870
C++
.cpp
156
35.5
173
0.612568
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,766
OneShot42.cpp
dridri_bcflight/flight/motors/OneShot42.cpp
#include <cmath> #include "OneShot42.h" #include "Config.h" #ifdef BUILD_OneShot42 int OneShot42::flight_register( Main* main ) { RegisterMotor( "OneShot42", OneShot42::Instanciate ); return 0; } Motor* OneShot42::Instanciate( Config* config, const string& object ) { int fl_pin = config->Integer( object + ".pin...
1,460
C++
.cpp
68
19.485294
85
0.659621
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
754,767
DMArpi.cpp
dridri_bcflight/flight/boards/rpi/DMArpi.cpp
#include <unistd.h> #include <sys/fcntl.h> #include <sys/mman.h> #include "mailbox.h" #include "DMArpi.h" #include "Debug.h" #define PAGE_SIZE 4096 #define PAGE_SHIFT 12 #define DMA_BASE (periph_virt_base + 0x00007000) #define DMA_CHAN_SIZE 0x100 /* size of register space for a single DMA channel */ #define DMA_CH...
9,404
C++
.cpp
260
34.323077
172
0.688159
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,768
SPI.cpp
dridri_bcflight/flight/boards/rpi/SPI.cpp
/* * 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,874
C++
.cpp
152
23.348684
184
0.635871
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,769
DShotDriver.cpp
dridri_bcflight/flight/boards/rpi/DShotDriver.cpp
#include <string.h> #include <sys/fcntl.h> #include <sys/mman.h> #include <unistd.h> #include <mutex> #include <GPIO.h> #include "Board.h" #include "DShotDriver.h" #include "Debug.h" #include "video/DRM.h" // TODO : ifdef PI_VARIANT = 4 #include <xf86drm.h> #include <xf86drmMode.h> extern std::mutex __global_rpi_drm_...
8,722
C++
.cpp
241
33.767635
201
0.580114
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,770
GPIO.cpp
dridri_bcflight/flight/boards/rpi/GPIO.cpp
/* * 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,896
C++
.cpp
143
24.986014
96
0.63412
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
754,771
Mutex.cpp
dridri_bcflight/flight/boards/rpi/Mutex.cpp
#include "Mutex.h" Mutex::Mutex() { } Mutex::~Mutex() { } void Mutex::Lock() { mMutex.lock(); } void Mutex::Unlock() { mMutex.unlock(); } void Mutex::lock() { mMutex.lock(); } void Mutex::unlock() { mMutex.unlock(); }
233
C++
.cpp
23
8.478261
20
0.668342
dridri/bcflight
131
22
8
GPL-3.0
9/20/2024, 9:42:21 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false