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
#include <iostream> | |
#include "protocol_stack.hpp" | |
#include "protocol.hpp" | |
#include "protocol1.hpp" | |
#include "protocol2.hpp" | |
#include "protocol3.hpp" | |
int main() { | |
ProtocolStack<Protocol1> example1; |
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
#!/usr/bin/env python3 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import serial | |
from enum import Enum | |
import struct | |
# ---------------------------------------------------------------------- | |
# System Constants |
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
#!/usr/bin/env python3 | |
# Tested with python3.11, geographiclib==2.0, matplotlib==3.8.2, numpy==1.26.2 | |
import math | |
import numpy as np | |
import csv | |
import argparse | |
def get_x_y_data(filename): |
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
#!/usr/bin/env python3 | |
import math | |
import shapefile | |
from PIL import Image, ImageDraw | |
# Longitude range to display in degrees | |
x_range = [-180,180] | |
# Latitude range to display in degrees | |
y_range = [-90,90] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import select, socket, sys, queue, time | |
from threading import Thread | |
from threading import Event | |
import logging | |
class TcpClient(Thread): | |
def __init__(self, ipAddress, port, recvQueue, sendQueue, stopEvent): | |
Thread.__init__(self) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from mmap import mmap | |
import time | |
import struct | |
LWFPGASLVS_OFST = 0xFF200000 | |
LED_PIO_BASE = 0x3000 | |
LED_SPAN = 0x10 | |
KEY_BASE = 0x5000 | |
KEY_SPAN = 0x10 |
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
#!/bin/bash | |
# Python 2.7 and 2.6 install script for CentOS 7 | |
# Instructions mainly taken from tutorial by Daniel Eriksson | |
# https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/ | |
python27_version=2.7.15 | |
python36_version=3.6.6 | |
build_dir=python_build_temp | |
example_environment_dir=pythonEnv |
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
# Functions to calculate APPROXIMATE range, bearing, and XY offset between two lat/long positions | |
# Uses the Haversine Formula | |
# See http://www.movable-type.co.uk/scripts/latlong.html for more details | |
# Math library needed for cos, sine, atan2, sqrt, degrees, and radians | |
import math | |
# This is the mean radius of the earth in metres | |
EARTH_RADIUS = 6371000.0 |
NewerOlder