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
# This program offers functions for controlling servos on the blue | |
# servo position is specified by "duty." If the servo is a continuous | |
# type, the duty will set the speed instead of the position. | |
# Uses rcpy library. Documentation: guitar.ucsd.edu/rcpy/rcpy.pdf | |
# PROGRAM REQUIRES SUDO. | |
import time, math | |
import getopt, sys | |
import rcpy # This automatically initizalizes the robotics cape | |
import rcpy.servo as servo |
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
debian@scuttle:~/basics$ sudo python3 L1_motors.py | |
[sudo] password for debian: | |
/usr/local/lib/python3.5/dist-packages/rcpy/__init__.py:116: UserWarning: > Robotics cape initialized | |
warnings.warn('> Robotics cape initialized') | |
/usr/local/lib/python3.5/dist-packages/rcpy/__init__.py:127: UserWarning: > Installing signal handlers | |
warnings.warn('> Installing signal handlers') | |
ERROR in rc_pwm_init, can't open pwm export file for writing: No such file or directory | |
Probably kernel or BeagleBone image is too old | |
ERROR in rc_motor_init, failed to initialize pwm subsystem 1 | |
Traceback (most recent call last): |
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
check_installed.sh 100%[=================================================================>] 2.75K --.-KB/s in 0.001s | |
2019-09-19 22:26:09 (3.72 MB/s) - ‘check_installed.sh’ saved [2815/2815] | |
debian@scuttle:~$ sudo bash check_installed.sh | |
[sudo] password for debian: | |
Checking for internet connection. | |
Success |
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
Get:18 http://deb.debian.org/debian stretch-updates/main armhf debian-archive-keyring all 2017.5+deb9u1 [73.9 kB] | |
Get:19 http://deb.debian.org/debian stretch/main armhf apt armhf 1.4.9 [1,199 kB] | |
Ign:19 http://deb.debian.org/debian stretch/main armhf apt armhf 1.4.9 | |
Ign:20 http://deb.debian.org/debian stretch/main armhf apt-utils armhf 1.4.9 | |
Err:13 http://repos.rcn-ee.com/debian stretch/main armhf bb-node-red-installer armhf 0.19.6-0rcnee0~stretch+20190228 | |
Error writing to output file - write (30: Read-only file system) Error writing to file - write (30: Read-only file system) [IP: 45.33.2.10 80] | |
Err:21 http://repos.rcn-ee.com/debian stretch/main armhf bone101 armhf 2.1.3-0rcnee3~stretch+20190803 | |
Could not open file /var/cache/apt/archives/partial/bone101_2.1.3-0rcnee3~stretch+20190803_armhf.deb - open (30: Read-only file system) [IP: 45.33.2.10 80] | |
Err:22 http://deb.debian.org/debian stretch/main armhf gpgv armhf 2.1.18-8~deb9u4 | |
Could not open file /var/cache/apt/archives/partial/gpgv_2.1.18-8~deb9u4_a |
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
debian@beaglebone:/var/lib/cloud9$ sudo connmanctl | |
[sudo] password for debian: | |
Error getting VPN connections: The name net.connman.vpn was not provided by any .serviceconnmanctl> scan wifi | |
Scan completed for wifi | |
connmanctl> scan wifi | |
Scan completed for wifi | |
connmanctl> agent on | |
Agent registered | |
connmanctl> services | |
PCHOTSPOT wifi_9884e3e0bd64_5043484f5453504f54_managed_psk |
NewerOlder