Skip to content

Instantly share code, notes, and snippets.

@nerdCopter
nerdCopter / README.md
Created August 24, 2023 20:25 — forked from robertpainsi/README.md
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?

Precodinitions

  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.

Instructions

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :
@nerdCopter
nerdCopter / install-gcc-4.9.4.sh
Last active April 8, 2023 18:14 — forked from jtilly/install-gcc-4.9.3.sh
Install GCC 4.9.4
#!/bin/bash
# this script installs GCC 4.9.4
# to use it navigate to your home directory and type:
# sh install-gcc-4.9.4.sh
# download and install gcc 4.9.4
wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.4/gcc-4.9.4.tar.gz
tar xzf gcc-4.9.4.tar.gz
cd gcc-4.9.4
@nerdCopter
nerdCopter / gist:22b12e16ea165921ea3fa0e31e3424b0
Created March 10, 2023 21:39
perfecting a simple FPV frame design
- arms like Bridge City Burnside (distinct motor mounts/fingers).
- top-plate strap indentations (not slots) like BotAFX or YRZ. (straight; not curves)
- top-plate screw positions wider than lipo.
- servicable stack screws, not blocked by arms. nonbinding screw-hole like Moxy/Skyliner/CL1
- pressnuts on bottom plate, 2 per arm -OR- 1 in arm, 1 in bottom-plate (Apex).
- arm-screws are not stack-screws.
- unsure split-deck or solid-bottom. split-deck seems better for "noise", but solid-bottom easier for arm-replacement.
- 8 standoffs, if full-schoolbus. 6 if fpv-cam-cage
- true X, 6" arms @5mm, 5.5mm, or 6mm arms -- must allow 6" props.
- bottom-plate hole for iFlight type hard-soldered ESC capacitors
@nerdCopter
nerdCopter / diff_of_port_roberts_HESP_to_BF411.diff
Created November 20, 2022 17:22
diff_of_port_roberts_HESP_to_BF411.diff
diff --git a/make/mcu/STM32F7.mk b/make/mcu/STM32F7.mk
index 6d8f71568..e3c747612 100644
--- a/make/mcu/STM32F7.mk
+++ b/make/mcu/STM32F7.mk
@@ -14,8 +14,6 @@ STDPERIPH_DIR = $(ROOT)/lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver
STDPERIPH_SRC = $(notdir $(wildcard $(STDPERIPH_DIR)/Src/*.c))
EXCLUDES = stm32f7xx_hal_can.c \
stm32f7xx_hal_cec.c \
- stm32f7xx_hal_crc.c \
- stm32f7xx_hal_crc_ex.c \
@nerdCopter
nerdCopter / diff_robertb-hesp-performance-with-branch_411.diff
Created November 20, 2022 17:17
diff_robertb-hesp-performance-with-branch_411.diff
index e498012a5..9fd743b22
--- a/make/mcu/STM32F3.mk
+++ b/make/mcu/STM32F3.mk
@@ -87,9 +87,10 @@ MCU_COMMON_SRC = \
drivers/pwm_output_dshot.c \
@nerdCopter
nerdCopter / BTFL_cli_M65Pro-ELRS_custom_tune.txt
Last active November 4, 2022 16:00
BetaFPV Meteor 65 Pro custom tune
######################################################################
# WORK IN PROGRESS - ACRO mode, i dont fly Stable
# BF 4.3.1
# This diff setup for BetaFPV Elrs Nano TX at 200Mhz
# generalized - still have very minor oscilation or jello
# static dterm-LPF1 type PT2 180Hz or 200Hz
# static dterm-LPF2 type PT1 500Hz
# static gyro-LPF1 type PT1 140Hz or 150Hz
# dynamic gyro notch qty 2 @400Q 200-800Hz
@nerdCopter
nerdCopter / BTFL_cli_M65Pro-ELRS_20220409_172213_dump_all_factory.txt
Created November 4, 2022 14:16
BetaFPV Meteor 65 pro factory dump all
#
# dump all
# version
# Betaflight / BETAFPVF4SX1280 (BHER) 4.3.0 Nov 3 2021 / 15:43:00 (0265565fa) MSP API: 1.44
# start the command batch
batch start
@nerdCopter
nerdCopter / blheli_beta4_1.0.3.8.4.tar.gz
Last active July 26, 2022 16:02
blheli32 linux beta4 1.0.3.8.4
This file has been truncated, but you can view the full file.
@nerdCopter
nerdCopter / ptb.sh
Last active May 19, 2022 18:33
Linux PTB run script -- requires Matlab runtime R2017b specifically.
#!/bin/bash
BBLFolder=~/Path/To/BlackBoxLogs ## do not use quotes.
# INSTALL PTB into preferred destination. example into ${BBLFolder} (preferred) or /home/${USER}/usr/PIDtoolbox ## NOTE: cannot use $USER variable in the installer, use actual username
# INSTALL MATLAB into /home/${USER}/usr/local/MATLAB/MATLAB_Runtime ## NOTE: cannot use $USER variable in the installer, use actual username
## 0.55 requires this action:
## cd ~/usr/local/MATLAB/MATLAB_Runtime/v93/bin/glnxa64
## mv libmwcoder_types.so libmwcoder_types_old.so