Skip to content

Instantly share code, notes, and snippets.

@wnagele
wnagele / run.py
Last active April 3, 2024 18:42
DJI Goggles and O3 Air Unit Overlay Processing
#!/usr/bin/env python3
import os
import configparser
from glob import glob
import ffmpeg
### INSTRUCTIONS
# 1. Run using processing.duration=60 and processing.frame_nums=true
# Duration should be long enough so that you have a fast movement,
@wnagele
wnagele / dps5005.py
Created September 23, 2023 10:33
Python code to interface with DPS5005 PSU via serial interface
import minimalmodbus, serial
# Example Usage:
# import pydps
# dps = pydps.dps_psu('/dev/tty.DPS5005', 1) # port name, slave address
# print(dps.getModel())
# print(dps.getVoltage())
class dps_psu(minimalmodbus.Instrument):