| 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
| M104 S0 ; turn off temperature | |
| M140 S0 ; turn off heatbed | |
| G28 X0 ; home X axis | |
| G1 Y150.0 ; move bed forward | |
| M84 ; disable motors |
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 | |
| ### BEGIN INIT INFO | |
| # Provides: sixad | |
| # Required-Start: $local_fs $syslog $remote_fs bluetooth | |
| # Required-Stop: $local_fs $syslog $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start sixad | |
| ### END INIT INFO | |
| # |
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/python3 | |
| # | |
| # Scatter plot example using pyqtgraph with PyQT5 | |
| # | |
| # Install instructions for Mac: | |
| # brew install pyqt | |
| # pip3 install pyqt5 pyqtgraph | |
| # python3 pyqtgraph_pyqt5.py | |
| import sys |
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
| #----------------------------------------------- | |
| # Make command: | |
| # make build=<build> all | |
| # <build>: debug or release, release by default. | |
| #----------------------------------------------- | |
| #----------------------------------------------- | |
| # setup variables | |
| # ---------------------------------------------- |
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 |
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 | |
| 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 | |
| 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
| #!/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 |