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 pin mappings for the Creality CR-10 S5. To use | |
# this config, the firmware should be compiled for the AVR atmega2560. | |
# See docs/Config_Reference.md for a description of parameters. | |
[stepper_x] | |
step_pin: PF0 | |
dir_pin: PF1 | |
enable_pin: !PD7 | |
microsteps: 16 |
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 | |
# Author: Simon Bøgh | |
# Year: 2024 | |
# Run the script: | |
# chmod +x install_ros_noetic.sh | |
# ./install_ros_noetic.sh | |
echo "###################################################" |
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 os | |
import subprocess | |
import argparse | |
""" | |
This script uses ffmpeg to change the playback speed of an MKV file | |
and save it as an MP4 file with a watermark. The user must provide the | |
name of the input MKV file and the playback speed as command line | |
arguments when running the script. |
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 python | |
# Based on: | |
# http://mathworld.wolfram.com/MomentofInertia.html | |
def get_cube_inertia_matrix(mass, x, y, z): | |
"""Given mass and dimensions of a cube return intertia matrix. | |
:return: ixx, ixy, ixz, ixy, iyy, iyz, ixz, iyz, izz | |
From https://www.wolframalpha.com/input/?i=moment+of+inertia+cube""" |