2019年3月24日日曜日

----------------------------------------------------------------
pi-packages
sudo -A rp-prefapps
rp-prefapps
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
gps_dmm2xy 3424.0094559 13520.3414517 6

cu -s 115200 -l /dev/ttyUSB0

sudo  apt-get install gpsd gpsd-clients
sudo vi /etc/default/gpsd
sudo systemctl restart gpsd
systemctl status gpsd

sudo apt-get install libgps-dev
gcc -o q1 q1.c -lm -lgps

確認 cu -s 115200 -l /dev/ttyUSB0
cu -s 115200 -l /dev/ttyUSB0 << EOS
stty -a -F /dev/ttyUSB0 | grep speed

設定
sudo stty -F /dev/ttyUSB0 115200

----------------------------------------------------------------
$ hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: B8:27:EB:04:7C:5E  ACL MTU: 1021:8  SCO MTU: 64:1
        DOWN
        RX bytes:654 acl:0 sco:0 events:33 errors:0
        TX bytes:419 acl:0 sco:0 commands:33 errors:0

$ sudo hciconfig hci0 up

Can't init device hci0: Operation not possible due to RF-kill (132)

$ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: yes
        Hard blocked: no

$ sudo rfkill unblock bluetooth

$ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

 $ sudo hciconfig hci0 reset

$ sudo hciconfig hci0
hci0:   Type: Primary  Bus: UART
        BD Address: B8:27:EB:04:7C:5E  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:2109 acl:0 sco:0 events:120 errors:0
        TX bytes:2011 acl:0 sco:0 commands:120 errors:0

$ sudo hciconfig hci0 up


echo N | sudo tee /sys/module/bluetooth/parameters/disable_ertm

$ sudo chmod 666 js*

$ ll
total 0
drwxr-xr-x  4 root root     240 Mar 24 13:06 .
drwxr-xr-x 15 root root    3400 Mar 24 13:06 ..
drwxr-xr-x  2 root root     100 Mar 24 12:29 by-id
drwxr-xr-x  2 root root     100 Mar 24 12:29 by-path
crw-rw----  1 root input 13, 64 Mar 24 12:29 event0
crw-rw----  1 root input 13, 65 Mar 24 12:29 event1
crw-rw----  1 root input 13, 66 Mar 24 13:06 event2
crw-rw-rw-  1 root input 13,  0 Mar 24 12:29 js0
crw-rw-rw-  1 root input 13,  1 Mar 24 13:06 js1
crw-rw----  1 root input 13, 63 Mar 24 12:29 mice
crw-rw----  1 root input 13, 32 Mar 24 12:29 mouse0
crw-rw----  1 root input 13, 33 Mar 24 13:06 mouse1

$ sudo apt-get install joystick
$ sudo apt-get install jstest-gtk

$ jstest-gtk


Opencv 3.4.4

$ cmake -D CMAKE_BUILD_TYPE=RELEASE     -D CMAKE_INSTALL_PREFIX=/usr/local     -D INSTALL_PYTHON_EXAMPLES=OFF     -D PLANTUML_JAR=/usr/share/java/plantuml.jar     -D ENABLE_NEON:BOOL=ON     -D WITH_TBB=ON -D BUILD_TBB=ON     -D WITH_QT=OFF -D WITH_OPENGL=OFF     -D BUILD_EXAMPLES=ON ..

0 件のコメント:

コメントを投稿