-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from Terrapin-Rocket-Team/69-basic-raspberry-…
…pi-radio-code Basic Raspberry Pi Teensy Interface and Live Video Radio Code
- Loading branch information
Showing
487 changed files
with
94,154 additions
and
416,302 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-462 KB
Side_Projects/Live Video/CAD/2.54 mm DUPONT MALE PIN HEADER, IO, 2X20, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file removed
BIN
-942 KB
Side_Projects/Live Video/CAD/2.54 mm DUPONT MALE PIN HEADER, IO, 2X40, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file removed
BIN
-94.2 KB
Side_Projects/Live Video/CAD/2.54 mm DUPONT MALE PIN HEADER, POE, 2X2, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-261 KB
Side_Projects/Live Video/CAD/91D77 D9WHV 778K, 4 GB LPDDR4 SDRAM, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-92.3 KB
Side_Projects/Live Video/CAD/Broadcom BCM2711B0 CPU, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file removed
BIN
-815 KB
...ojects/Live Video/CAD/Broadcom BCM54213PE Gigabit Ethernet Transceiver, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-155 KB
Side_Projects/Live Video/CAD/Cypress CYW43455 Wireless Module Cover, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-871 KB
Side_Projects/Live Video/CAD/Female Micro HDMI Connector, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file removed
BIN
-385 KB
Side_Projects/Live Video/CAD/Female USB Type C Connector, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file removed
BIN
-369 KB
Side_Projects/Live Video/CAD/Gigabit Ethernet Port, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-435 KB
Side_Projects/Live Video/CAD/MxL7704 Universal PMIC, RPi4ModelB.SLDPRT
Binary file not shown.
Binary file not shown.
Binary file not shown.
415,879 changes: 0 additions & 415,879 deletions
415,879
Side_Projects/Live Video/CAD/Raspberry Pi 4 Model B.STEP
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-24.2 KB
...jects/Live Video/CAD/TopView, VIA VL805 PCIe USB 3.0 controller, RPi4ModelB.png
Binary file not shown.
Binary file removed
BIN
-591 KB
Side_Projects/Live Video/CAD/VIA VL805 PCIe USB 3.0 controller, RPi4ModelB.SLDPRT
Binary file not shown.
File renamed without changes.
Binary file removed
BIN
-22 Bytes
Side_Projects/Live Video/PCBs/LVPD-board-backups/LVPD-board-2024-02-13_161922.zip
Binary file not shown.
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
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,6 @@ | ||
.pio | ||
.vscode/.browse.c_cpp.db* | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch | ||
serial_logs/ |
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,39 @@ | ||
|
||
This directory is intended for project header files. | ||
|
||
A header file is a file containing C declarations and macro definitions | ||
to be shared between several project source files. You request the use of a | ||
header file in your project source file (C, C++, etc) located in `src` folder | ||
by including it, with the C preprocessing directive `#include'. | ||
|
||
```src/main.c | ||
|
||
#include "header.h" | ||
|
||
int main (void) | ||
{ | ||
... | ||
} | ||
``` | ||
|
||
Including a header file produces the same results as copying the header file | ||
into each source file that needs it. Such copying would be time-consuming | ||
and error-prone. With a header file, the related declarations appear | ||
in only one place. If they need to be changed, they can be changed in one | ||
place, and programs that include the header file will automatically use the | ||
new version when next recompiled. The header file eliminates the labor of | ||
finding and changing all the copies as well as the risk that a failure to | ||
find one copy will result in inconsistencies within a program. | ||
|
||
In C, the usual convention is to give header files names that end with `.h'. | ||
It is most portable to use only letters, digits, dashes, and underscores in | ||
header file names, and at most one dot. | ||
|
||
Read more about using header files in official GCC documentation: | ||
|
||
* Include Syntax | ||
* Include Operation | ||
* Once-Only Headers | ||
* Computed Includes | ||
|
||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html |
45 changes: 45 additions & 0 deletions
45
Side_Projects/Live Video/live-video-teensy/include/Radio.h
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,45 @@ | ||
#ifndef RADIO_H | ||
#define RADIO_H | ||
|
||
#if defined(ARDUINO) | ||
#include <Arduino.h> | ||
#elif defined(_WIN32) || defined(_WIN64) // Windows | ||
#include <cstdint> | ||
#include <string> | ||
#include <cstring> | ||
#elif defined(__unix__) // Linux | ||
// TODO | ||
#elif defined(__APPLE__) // OSX | ||
// TODO | ||
#endif | ||
|
||
/* | ||
Types: | ||
- ENCT_TELEMETRY: latitude,longitude,altitude,speed,heading,precision,stage,t0 <-> APRS message | ||
- ENCT_VIDEO: char* filled with raw bytes <-> Raw byte array | ||
- ENCT_GROUNDSTATION: Source:Value,Destination:Value,Path:Value,Type:Value,Body:Value <-> APRS message | ||
- ENCT_NONE: no encoding is applied, same as using tx() | ||
*/ | ||
enum EncodingType | ||
{ | ||
ENCT_TELEMETRY, | ||
ENCT_VIDEO, | ||
ENCT_GROUNDSTATION, | ||
ENCT_NONE | ||
}; | ||
|
||
class Radio | ||
{ | ||
public: | ||
virtual ~Radio(){}; // Virtual descructor. Very important | ||
virtual bool begin() = 0; | ||
virtual bool tx(const char *message, int len = -1) = 0; | ||
virtual const char *rx() = 0; | ||
virtual bool encode(char *message, EncodingType type, int len = -1) = 0; | ||
virtual bool decode(char *message, EncodingType type, int len = -1) = 0; | ||
virtual bool send(const char *message, EncodingType type, int len = -1) = 0; | ||
virtual const char *receive(EncodingType type) = 0; | ||
virtual int RSSI() = 0; | ||
}; | ||
|
||
#endif // RADIO_H |
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,46 @@ | ||
|
||
This directory is intended for project specific (private) libraries. | ||
PlatformIO will compile them to static libraries and link into executable file. | ||
|
||
The source code of each library should be placed in an own separate directory | ||
("lib/your_library_name/[here are source files]"). | ||
|
||
For example, see a structure of the following two libraries `Foo` and `Bar`: | ||
|
||
|--lib | ||
| | | ||
| |--Bar | ||
| | |--docs | ||
| | |--examples | ||
| | |--src | ||
| | |- Bar.c | ||
| | |- Bar.h | ||
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html | ||
| | | ||
| |--Foo | ||
| | |- Foo.c | ||
| | |- Foo.h | ||
| | | ||
| |- README --> THIS FILE | ||
| | ||
|- platformio.ini | ||
|--src | ||
|- main.c | ||
|
||
and a contents of `src/main.c`: | ||
``` | ||
#include <Foo.h> | ||
#include <Bar.h> | ||
|
||
int main (void) | ||
{ | ||
... | ||
} | ||
|
||
``` | ||
|
||
PlatformIO Library Dependency Finder will find automatically dependent | ||
libraries scanning project source files. | ||
|
||
More information about PlatformIO Library Dependency Finder | ||
- https://docs.platformio.org/page/librarymanager/ldf.html |
17 changes: 17 additions & 0 deletions
17
Side_Projects/Live Video/live-video-teensy/lib/RadioHead/LICENSE
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,17 @@ | ||
This software is Copyright (C) Mike McCauley. Use is subject to license | ||
conditions. The main licensing options available are GPL V3 or Commercial: | ||
|
||
Open Source Licensing GPL V3 | ||
|
||
This is the appropriate option if you want to share the source code of your | ||
application with everyone you distribute it to, and you also want to give them | ||
the right to share who uses it. If you wish to use this software under Open | ||
Source Licensing, you must contribute all your source code to the open source | ||
community in accordance with the GPL Version 3 when your application is | ||
distributed. See http://www.gnu.org/copyleft/gpl.html | ||
|
||
Commercial Licensing | ||
|
||
This is the appropriate option if you are creating proprietary applications | ||
and you are not prepared to distribute and share the source code of your | ||
application. Contact info@airspayce for details. |
Oops, something went wrong.