forked from PetruSoroaga/RubyFPV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5246a45
commit 8bda509
Showing
10 changed files
with
1,586 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
double* get_Color_Dev(); | ||
|
||
double* get_Color_OSDBackground(); | ||
double* get_Color_OSDText(); | ||
double* get_Color_OSDTextOutline(); | ||
double* get_Color_OSDWarning(); | ||
|
||
double* get_Color_PopupBg(); | ||
double* get_Color_PopupBorder(); | ||
double* get_Color_PopupText(); | ||
|
||
double* get_Color_MenuBg(); | ||
double* get_Color_MenuBorder(); | ||
double* get_Color_MenuText(); | ||
double* get_Color_ItemSelectedBg(); | ||
double* get_Color_ItemSelectedText(); | ||
double* get_Color_ItemDisabledText(); | ||
|
||
double* get_Color_IconNormal(); | ||
double* get_Color_IconWarning(); | ||
double* get_Color_IconError(); | ||
double* get_Color_IconSucces(); | ||
|
||
|
||
void set_Color_OSDText(float r, float g, float b, float a); | ||
void set_Color_OSDOutline(float r, float g, float b, float a); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
LDFLAGS=-lrt -lpcap -lwiringPi -lpthread | ||
CPPFLAGS=-Wall -O2 -D _GNU_SOURCE | ||
CFLAGS := $(CFLAGS) | ||
RELEASE_DIR = ../ | ||
|
||
all: ruby_i2c | ||
|
||
base.o: ../base/base.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
alarms.o: ../base/alarms.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
config.o: ../base/config.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
encr.o: ../base/encr.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_i2c.o: ../base/hardware_i2c.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ctrl_settings.o: ../base/ctrl_settings.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ctrl_interfaces.o: ../base/ctrl_interfaces.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
gpio.o: ../base/gpio.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware.o: ../base/hardware.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_serial.o: ../base/hardware_serial.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_radio.o: ../base/hardware_radio.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hw_procs.o: ../base/hw_procs.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ruby_ipc.o: ../base/ruby_ipc.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
shared_mem.o: ../base/shared_mem.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
shared_mem_i2c.o: ../base/shared_mem_i2c.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
commands.o: ../base/commands.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
utils.o: ../base/utils.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
models.o: ../base/models.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
launchers.o: ../base/launchers.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
string_utils.o: ../common/string_utils.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiotap.o: ../radio/radiotap.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiolink.o: ../radio/radiolink.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiopackets2.o: ../radio/radiopackets2.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
%.o: %.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
ruby_i2c: ruby_i2c.o base.o config.o hardware.o gpio.o launchers.o shared_mem.o models.o hw_procs.o utils.o radiotap.o radiolink.o radiopackets2.o shared_mem_i2c.o ctrl_interfaces.o ctrl_settings.o encr.o hardware_i2c.o alarms.o string_utils.o hardware_radio.o ruby_ipc.o hardware_serial.o | ||
g++ -o $@ $^ $(LDFLAGS) | ||
cp -f ruby_i2c $(RELEASE_DIR) | ||
$(info Copy ruby_i2c done) | ||
$(info ----------------------------------------------------) | ||
|
||
clean: | ||
rm -f ruby_i2c *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
LDFLAGS=-lrt -lpcap -lpthread | ||
CPPFLAGS=-Wall -O0 -D _GNU_SOURCE | ||
CFLAGS := $(CFLAGS) | ||
RELEASE_DIR = ../ | ||
|
||
all: plugin_core_example | ||
|
||
core_plugins_utils.o: ../public/utils/core_plugins_utils.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
%.o: %.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
|
||
plugin_core_example: core_plugins_utils.o plugin_core_example.o | ||
gcc plugin_core_example.o core_plugins_utils.o -shared -Wl,-soname,plugin_core_example.so.1 -o plugin_core_example.so.1.0.1 -lc | ||
cp -f plugin_core_example.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy plugin_core_example) | ||
$(info ----------------------------------------------------) | ||
|
||
clean: | ||
rm -f plugin_core_example.so.* *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
LDFLAGS=-lrt -lpcap -lpthread | ||
CPPFLAGS=-Wall -O0 -D _GNU_SOURCE | ||
CFLAGS := $(CFLAGS) | ||
RELEASE_DIR = ../ | ||
|
||
all: ruby_plugin my_plugin ruby_plugin_gauge_speed ruby_plugin_gauge_altitude ruby_plugin_gauge_ahi ruby_plugin_gauge_heading | ||
|
||
%.o: %.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
|
||
ruby_plugin: ruby_plugin_osd_ahi.o | ||
gcc ruby_plugin_osd_ahi.o -shared -Wl,-soname,ruby_ahi_plugin.so.1 -o ruby_ahi_plugin.so.1.0.1 -lc | ||
cp -f ruby_ahi_plugin.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy ruby_ahi_plugin done) | ||
$(info ----------------------------------------------------) | ||
|
||
ruby_plugin_gauge_speed: ruby_plugin_gauge_speed.o | ||
gcc ruby_plugin_gauge_speed.o -shared -Wl,-soname,ruby_plugin_gauge_speed.so.1 -o ruby_plugin_gauge_speed.so.1.0.1 -lc | ||
cp -f ruby_plugin_gauge_speed.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy ruby_plugin_gauge_speed done) | ||
$(info ----------------------------------------------------) | ||
|
||
ruby_plugin_gauge_altitude: ruby_plugin_gauge_altitude.o | ||
gcc ruby_plugin_gauge_altitude.o -shared -Wl,-soname,ruby_plugin_gauge_altitude.so.1 -o ruby_plugin_gauge_altitude.so.1.0.1 -lc | ||
cp -f ruby_plugin_gauge_altitude.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy ruby_plugin_gauge_altitude done) | ||
$(info ----------------------------------------------------) | ||
|
||
ruby_plugin_gauge_ahi: ruby_plugin_gauge_ahi.o | ||
gcc ruby_plugin_gauge_ahi.o -shared -Wl,-soname,ruby_plugin_gauge_ahi.so.1 -o ruby_plugin_gauge_ahi.so.1.0.1 -lc | ||
cp -f ruby_plugin_gauge_ahi.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy ruby_plugin_gauge_ahi done) | ||
$(info ----------------------------------------------------) | ||
|
||
ruby_plugin_gauge_heading: ruby_plugin_gauge_heading.o | ||
gcc ruby_plugin_gauge_heading.o -shared -Wl,-soname,ruby_plugin_gauge_heading.so.1 -o ruby_plugin_gauge_heading.so.1.0.1 -lc | ||
cp -f ruby_plugin_gauge_heading.so.1.0.1 $(RELEASE_DIR) | ||
$(info Copy ruby_plugin_gauge_heading done) | ||
$(info ----------------------------------------------------) | ||
|
||
my_plugin: my_plugin_source.o | ||
gcc my_plugin_source.o -shared -Wl,-soname,my_plugin.so.1 -o my_plugin.so.1.0.1 -lc | ||
cp -f my_plugin.so.1.0.1 $(RELEASE_DIR) | ||
|
||
clean: | ||
rm -f ruby_ahi_plugin.so.* ruby_plugin_gauge_speed.so.* ruby_plugin_gauge_altitude.so.* ruby_plugin_gauge_ahi.so.* ruby_plugin_gauge_heading.so.* my_plugin.* *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
LDFLAGS=-lrt -lpcap -lwiringPi -lpthread | ||
CPPFLAGS=-Wall -O0 -D _GNU_SOURCE | ||
CFLAGS := $(CFLAGS) | ||
RELEASE_DIR = ../ | ||
|
||
all: ruby_start | ||
|
||
base.o: ../base/base.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
alarms.o: ../base/alarms.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
config.o: ../base/config.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
encr.o: ../base/encr.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ctrl_settings.o: ../base/ctrl_settings.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
gpio.o: ../base/gpio.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware.o: ../base/hardware.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_i2c.o: ../base/hardware_i2c.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_radio.o: ../base/hardware_radio.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hardware_serial.o: ../base/hardware_serial.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
hw_procs.o: ../base/hw_procs.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ruby_ipc.o: ../base/ruby_ipc.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
shared_mem.o: ../base/shared_mem.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
string_utils.o: ../common/string_utils.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
commands.o: ../base/commands.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
models.o: ../base/models.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
launchers.o: ../base/launchers.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
fec.o: fec.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
utils.o: ../base/utils.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
controller_utils.o: ../base/controller_utils.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
%.o: %.cpp | ||
g++ $(CFLAGS) -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiotap.o: ../radio/radiotap.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiolink.o: ../radio/radiolink.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
radiopackets2.o: ../radio/radiopackets2.c | ||
gcc -c -o $@ $< $(CPPFLAGS) | ||
|
||
ruby_start: ruby_start.o shared_mem.o base.o config.o hardware.o hw_procs.o models.o gpio.o launchers.o radiotap.o radiolink.o radiopackets2.o ctrl_settings.o utils.o encr.o hardware_i2c.o alarms.o hw_config_check.o string_utils.o hardware_radio.o controller_utils.o ruby_ipc.o hardware_serial.o | ||
g++ -o $@ $^ $(LDFLAGS) | ||
cp -f ruby_start $(RELEASE_DIR) | ||
$(info Copy ruby_start done) | ||
$(info ----------------------------------------------------) | ||
|
||
clean: | ||
rm -f ruby_start *.o |
Oops, something went wrong.