ST-LINK/V2 | VESC |
---|---|
VAPP (pin 1) | VCC |
TCK_SWCLK (pin 9) | CLK |
GND (pin 20) | GND |
TMS_SWDIO (pin 7) | IO |
NRST (pin 15) | RST |
This file contains hidden or 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 -e | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
This file contains hidden or 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 | |
# Inspired by: https://www.youtube.com/watch?v=izG7qT0EpBw | |
# The CRC values are verified using: https://crccalc.com/ | |
def reflect_data(x, width): | |
# See: https://stackoverflow.com/a/20918545 | |
if width == 8: | |
x = ((x & 0x55) << 1) | ((x & 0xAA) >> 1) | |
x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2) | |
x = ((x & 0x0F) << 4) | ((x & 0xF0) >> 4) |
This file contains hidden or 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 | |
import numpy as np | |
def main(): | |
def ubx_checksum(data): | |
ck_a = 0 | |
ck_b = 0 | |
for byte in data: |
This file contains hidden or 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
/** | |
* task.h | |
* <PRE>UBaseType_t uxTaskGetStackSize( TaskHandle_t xTask );</PRE> | |
* | |
* Returns the stack size associated with xTask. That is, the stack | |
* size (in words, so on a 32 bit machine a value of 1 means 4 bytes) of the task. | |
* | |
* @param xTask Handle of the task associated with the stack to be checked. | |
* Set xTask to NULL to check the stack of the calling task. | |
* |
This file contains hidden or 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/python | |
# /**************************************************************************** | |
# * | |
# * Copyright (c) 2015-2016 PX4 Development Team. All rights reserved. | |
# * | |
# * Redistribution and use in source and binary forms, with or without | |
# * modification, are permitted provided that the following conditions | |
# * are met: | |
# * | |
# * 1. Redistributions of source code must retain the above copyright |
This file contains hidden or 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 -e | |
kernel=$(uname -r | tr -d '+') | |
build=${build:-$(uname -v | awk '{print $1}' | tr -d '#')} | |
tarfile=8192eu-$kernel-$build.tar.gz | |
wget http://downloads.fars-robotics.net/wifi-drivers/8192eu-drivers/$tarfile | |
tar xzf $tarfile | |
./install.sh |
This file contains hidden or 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 | |
if [ "$WIFIPASS" == "" ] | |
then | |
read -p "Wifi Interface: " WLAN # wlan0, wlan1 etc | |
read -p "Wifi Network name: " APName | |
read -p "Wifi Password: " WIFIPASS | |
fi | |
if [ -z "$exc" ] | |
then | |
source functions.sh |
This file contains hidden or 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 -e | |
diskutil list | |
read -p $'This script will unmount "/Volumes/BOOTCAMP" and set the permission for the EFI (/dev/disk0s1) and BOOTCAMP (/dev/disk0s3) permissions to executable\nPress enter to continue' | |
diskutil unmount /Volumes/BOOTCAMP | |
sudo chmod 777 /dev/disk0s1 | |
sudo chmod 777 /dev/disk0s3 |
This file contains hidden or 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 -e | |
kernel=$(uname -r | tr -d '+') | |
build=${build:-$(uname -v | awk '{print $1}' | tr -d '#')} | |
tarfile=8192eu-$kernel-$build.tar.gz | |
wget http://fars-robotics.net/$tarfile | |
tar xzf $tarfile | |
./install.sh |