2022-08-28, 05:42 PM
(2022-08-28, 04:00 PM)seandepagnier Wrote: I pushed the changes to git now.
(2022-08-27, 06:32 PM)kniven Wrote: Sean. I'm still a bit new to all this git stuff and building the pypilot... Any suggestions?
I am not sure, but you are in the pypilot_update directory... What happens from the pypilot directory?
On tinycore often you need to pull the git changes to another machine, then pull from it locally since tinycore does not have ssl working.
I tried various thing. First, I tried to clone from git, directly to the Tinypilot... Failed, github timeout
Code:
tc@pypilot:~/pypilot-update$ ls
tc@pypilot:~/pypilot-update$ git clone git://github.com/pypilot/pypilot
Cloning into 'pypilot'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Connection timed out
Code:
leifi@LAPTOP-L8M64A00 MINGW64 ~/pypilot2
$ git clone https://github.com/pypilot/pypilot
git clone --depth 1 https://github.com/pypilot/pypilot_data
Cloning into 'pypilot'...
remote: Enumerating objects: 11617, done.
remote: Counting objects: 100% (802/802), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 11617 (delta 735), reused 744 (delta 704), pack-reused 10815
Receiving objects: 100% (11617/11617), 3.32 MiB | 1.66 MiB/s, done.
Resolving deltas: 100% (8043/8043), done.
Cloning into 'pypilot_data'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 16 (delta 0), reused 13 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 479.01 KiB | 990.00 KiB/s, done.
leifi@LAPTOP-L8M64A00 MINGW64 ~/pypilot2
$ cp -rv pypilot_data/* pypilot
'pypilot_data/README.md' -> 'pypilot/README.md'
'pypilot_data/arduino/weathersensors/font.ttf' -> 'pypilot/arduino/weathersensors/font.ttf'
'pypilot_data/hat/font.ttf' -> 'pypilot/hat/font.ttf'
'pypilot_data/ui/compass.png' -> 'pypilot/ui/compass.png'
'pypilot_data/ui/Vagabond.mtl' -> 'pypilot/ui/Vagabond.mtl'
'pypilot_data/ui/Vagabond.obj' -> 'pypilot/ui/Vagabond.obj'
'pypilot_data/web/static/font/Roboto-Regular.ttf' -> 'pypilot/web/static/font/Roboto-Regular.ttf'
leifi@LAPTOP-L8M64A00 MINGW64 ~/pypilot2
$ ls
pypilot/ pypilot_data/
leifi@LAPTOP-L8M64A00 MINGW64 ~/pypilot2
$
leifi@LAPTOP-L8M64A00 MINGW64 ~/pypilot2
$ scp -r pypilot/ tc@192.168.1.102:~/pypilot_update2/
tc@192.168.1.102's password:
config 100% 297 14.0KB/s 00:00
description 100% 73 1.8KB/s 00:00
FETCH_HEAD 100% 314 21.3KB/s 00:00
HEAD 100% 23 0.4KB/s 00:00
applypatch-msg.sample 100% 478 8.3KB/s 00:00
commit-msg.sample 100% 896 11.8KB/s 00:00
fsmonitor-watchman.sample 100% 4655 170.9KB/s 00:00
post-update.sample 100% 189 12.5KB/s 00:00
pre-applypatch.sample 100% 424 29.0KB/s 00:00
pre-commit.sample 100% 1643 58.5KB/s 00:00
pre-merge-commit.sample 100% 416 48.7KB/s 00:00
pre-push.sample 100% 1374 46.5KB/s 00:00
pre-rebase.sample 100% 4898 200.9KB/s 00:00
pre-receive.sample 100% 544 42.1KB/s 00:00
prepare-commit-msg.sample 100% 1492 68.5KB/s 00:00
push-to-checkout.sample 100% 2783 112.7KB/s 00:00
update.sample 100% 3650 141.3KB/s 00:00
index 100% 31KB 286.1KB/s 00:00
exclude 100% 240 13.3KB/s 00:00
HEAD 100% 197 8.5KB/s 00:00
master 100% 197 11.8KB/s 00:00
HEAD 100% 197 3.1KB/s 00:00
pack-cd227d5aa1871d989090a26757c2881f4210aac1.idx 100% 319KB 300.8KB/s 00:01
pack-cd227d5aa1871d989090a26757c2881f4210aac1.pack 100% 3398KB 231.2KB/s 00:14
ORIG_HEAD 100% 41 3.4KB/s 00:00
packed-refs 100% 306 34.3KB/s 00:00
master 100% 41 2.5KB/s 00:00
HEAD 100% 32 3.9KB/s 00:00
.gitignore 100% 92 5.2KB/s 00:00
hat.ino 100% 15KB 383.2KB/s 00:00
IRLibDecodeBase.cpp 100% 7106 273.5KB/s 00:00
IRLibDecodeBase.h 100% 5404 130.9KB/s 00:00
IRLibGlobals.h 100% 8030 105.0KB/s 00:00
IRLibRecvBase.cpp 100% 10KB 382.8KB/s 00:00
IRLibRecvBase.h 100% 4195 242.8KB/s 00:00
IRLibCombo.h 100% 7539 202.5KB/s 00:00
IRLibHardware.cpp 100% 1969 117.6KB/s 00:00
IRLibHardware.h 100% 16KB 166.6KB/s 00:00
IRLibProtocols.h 100% 1304 73.2KB/s 00:00
IRLib_HashRaw.h 100% 3633 160.0KB/s 00:00
IRLib_P01_NEC.h 100% 3666 86.2KB/s 00:00
IRLib_P02_Sony.h 100% 2869 180.0KB/s 00:00
IRLib_P03_RC5.h 100% 4386 88.8KB/s 00:00
IRLib_P04_RC6.h 100% 6549 189.3KB/s 00:00
IRLib_P05_Panasonic_Old.h 100% 2507 60.6KB/s 00:00
IRLib_P07_NECx.h 100% 2997 64.3KB/s 00:00
IRLibRecvPCI.cpp 100% 5902 187.2KB/s 00:00
IRLibRecvPCI.h 100% 1742 97.5KB/s 00:00
Makefile 100% 4305 119.1KB/s 00:00
RCSwitch.cpp 100% 21KB 372.7KB/s 00:00
RCSwitch.h 100% 5146 141.6KB/s 00:00
wiring.c 100% 9712 215.6KB/s 00:00
crc.h 100% 2542 122.2KB/s 00:00
Makefile 100% 5644 82.3KB/s 00:00
motor.ino 100% 45KB 500.5KB/s 00:00
README 100% 2373 101.5KB/s 00:00
README 100% 987 48.0KB/s 00:00
Makefile 100% 2282 111.3KB/s 00:00
RCSwitch.cpp 100% 22KB 348.3KB/s 00:00
RCSwitch.h 100% 5148 282.3KB/s 00:00
rfremote.ino 100% 2703 112.4KB/s 00:00
wiring.c 100% 9895 598.0KB/s 00:00
Makefile 100% 3053 87.0KB/s 00:00
rudder.ino 100% 6603 177.9KB/s 00:00
.gitignore 100% 59 1.9KB/s 00:00
font.ttf 100% 137KB 326.7KB/s 00:00
JLX12864.cpp 100% 7089 160.1KB/s 00:00
JLX12864.h 100% 2293 92.7KB/s 00:00
Makefile 100% 4242 167.6KB/s 00:00
make_charset.py 100% 2651 103.2KB/s 00:00
PCD8544.cpp 100% 11KB 205.3KB/s 00:00
PCD8544.h 100% 4099 139.2KB/s 00:00
README 100% 1172 109.2KB/s 00:00
twi.c 100% 18KB 256.5KB/s 00:00
twi.h 100% 1669 32.6KB/s 00:00
weathersensors.ino 100% 44KB 459.7KB/s 00:00
dependencies.py 100% 7738 164.1KB/s 00:00
.gitignore 100% 7 0.4KB/s 00:00
arduino.py 100% 15KB 230.2KB/s 00:00
babel.cfg 100% 132 6.9KB/s 00:00
boot.py 100% 539 27.5KB/s 00:00
config.py 100% 67 3.9KB/s 00:00
config_esp32.py 100% 1662 61.7KB/s 00:00
eeprom_settings.txt 100% 3137 224.9KB/s 00:00
pypilot_hat.conf 100% 245 24.7KB/s 00:00
README 100% 243 14.5KB/s 00:00
script.sh 100% 514 15.2KB/s 00:00
font.py 100% 4634 224.2KB/s 00:00
font.ttf 100% 190KB 494.1KB/s 00:00
gettext_esp32.py 100% 1068 35.8KB/s 00:00
glut.py 100% 2860 54.2KB/s 00:00
gpio.py 100% 3975 323.0KB/s 00:00
gpio_esp32.py 100% 4802 162.0KB/s 00:00
hat.py 100% 20KB 310.2KB/s 00:00
lcd.py 100% 12KB 278.2KB/s 00:00
lcd_esp32.py 100% 3968 341.8KB/s 00:00
lircd.py 100% 4129 119.9KB/s 00:00
apertium-po.py 100% 3289 129.9KB/s 00:00
pypilot_hat.po 100% 4750 196.9KB/s 00:00
pypilot_hat.po 100% 4710 171.6KB/s 00:00
pypilot_hat.po 100% 4770 264.7KB/s 00:00
pypilot_hat.po 100% 5383 155.6KB/s 00:00
pypilot_hat.po 100% 4748 149.2KB/s 00:00
pypilot_hat.po 100% 4702 61.5KB/s 00:00
pypilot_hat.po 100% 4810 75.5KB/s 00:00
pypilot_hat.po 100% 4755 167.6KB/s 00:00
Makefile 100% 298 5.4KB/s 00:00
pypilot_hat.po 100% 4690 172.2KB/s 00:00
pypilot_hat.po 100% 4675 279.5KB/s 00:00
pypilot_hat.po 100% 4721 248.9KB/s 00:00
POTFILES.in 100% 24 2.2KB/s 00:00
pypilot_hat.po 100% 4676 209.9KB/s 00:00
pypilot_hat.pot 100% 3925 289.5KB/s 00:00
pypilot_hat.po 100% 5359 265.2KB/s 00:00
pypilot_hat.po 100% 4813 301.1KB/s 00:00
trans-po.py 100% 3416 84.2KB/s 00:00
translate.sh 100% 701 29.6KB/s 00:00
Makefile 100% 735 53.4KB/s 00:00
menu.py 100% 23KB 350.8KB/s 00:00
messages.pot 100% 491 21.0KB/s 00:00
page.py 100% 32KB 376.0KB/s 00:00
pypilot_hat_web.pot 100% 2146 64.1KB/s 00:00
README 100% 502 50.1KB/s 00:00
.gitignore 100% 34 2.3KB/s 00:00
spireader.cpp 100% 1107 48.9KB/s 00:00
..cut some text due to too long message
index.css 100% 3019 130.9KB/s 00:00
jquery.min.js 100% 94KB 576.8KB/s 00:00
pypilot_control.js 100% 22KB 432.4KB/s 00:00
socket.io.min.js 100% 60KB 387.2KB/s 00:00
w3.css 100% 30KB 246.2KB/s 00:00
calibrationplot.html 100% 1430 51.8KB/s 00:00
index.html 100% 7522 129.4KB/s 00:00
wifi.html 100% 1897 88.7KB/s 00:00
tinypilot.py 100% 748 18.8KB/s 00:00
translate.sh 100% 616 50.2KB/s 00:00
messages.po 100% 6142 236.6KB/s 00:00
messages.po 100% 5991 76.0KB/s 00:00
messages.po 100% 6078 106.5KB/s 00:00
messages.po 100% 7099 364.6KB/s 00:00
messages.po 100% 6146 463.5KB/s 00:00
messages.po 100% 5961 403.8KB/s 00:00
messages.po 100% 6079 262.6KB/s 00:00
messages.po 100% 6103 371.5KB/s 00:00
messages.po 100% 5994 94.8KB/s 00:00
messages.po 100% 5978 149.3KB/s 00:00
messages.po 100% 5999 101.7KB/s 00:00
messages.po 100% 5693 312.5KB/s 00:00
messages.po 100% 7131 258.1KB/s 00:00
messages.po 100% 5955 234.7KB/s 00:00
web.py 100% 7244 270.5KB/s 00:00
__init__.py
On my tinypilot, I now have the expected directory "pypilot_update2"
Code:
tc@pypilot:~$ ls
README pypilot pypilot-update/ pypilot_update/ pypilot_update2/
tc@pypilot:~$ cd pypilot_update2/
tc@pypilot:~/pypilot_update2$ ls
README arduino/ hat/ pypilot.build setup.cfg ui/
README.md dependencies.py pypilot/ scripts/ setup.py web/
tc@pypilot:~/pypilot_update2$
I now try to run pypilot, using the python3 autopilot.py, and get this error.
Code:
leifi@LAPTOP-L8M64A00 MINGW64 ~
$ ssh tc@192.168.1.102
tc@192.168.1.102's password:
tinypilot is a Sailboat Autopilot Distribution for raspberry pi
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@pypilot:~$ ls
README pypilot pypilot_update2/
tc@pypilot:~$ cd pypilot_update2/
tc@pypilot:~/pypilot_update2$ ls
README arduino/ hat/ pypilot.build setup.cfg ui/
README.md dependencies.py pypilot/ scripts/ setup.py web/
tc@pypilot:~/pypilot_update2$ cd pypilot/
tc@pypilot:~/pypilot_update2/pypilot$ python3 autopilot.py
autopilot start 160.964211
world magnetic model not available
autopilot start 168.28026
imu process 3670
made imu process realtime
Using settings file RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Detected ICM20948 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: ICM-20948
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
warning, failed to make calibration process idle, trying renice
ICM-20948 init complete
Traceback (most recent call last):
File "autopilot.py", line 477, in <module>
main()
File "autopilot.py", line 471, in main
ap = Autopilot()
File "autopilot.py", line 107, in __init__
self.sensors = Sensors(self.client, self.boatimu)
File "/home/tc/pypilot_update2/pypilot/sensors.py", line 282, in __init__
from signalk import signalk
File "/home/tc/pypilot_update2/pypilot/signalk.py", line 367
data[pypilot_key] = value[signalk_key] / signalk_conversion
^
IndentationError: expected an indented block
closing autopilot
tc@pypilot:~/pypilot_update2/pypilot$ sudo sv stop pypilot
ok: down: pypilot: 0s
tc@pypilot:~/pypilot_update2/pypilot$
I also try to build using the . pypilot.build command, but this also fails
Code:
tc@pypilot:~/pypilot_update2$ . pypilot.build
: not foundt.build: line 9:
: not foundt.build: line 13:
: not foundt.build: line 18:
: not foundt.build: line 26:
: not foundt.build: line 30:
: not foundt.build: line 32:
: not foundt.build: line 34:
..cut some text due to too long message
.tcz': No such file or directory
: not foundt.build: line 97:
: not foundt.build: line 99:
.tcz': No such file or directory
: not foundt.build: line 101:
.tcz /mnt/mmcblk0p2/tce/optional/pypilot
: No such file or directoryonal/pypilot
: not foundt.build: line 105:
.tcz pypilot
-rw-r--r-- 1 tc staff 4096 Nov 4 11:06 pypilot?.tcz?
: not foundt.build: line 108:
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
: not foundt.build: line 110:
: not foundt.build: line 112:
: not foundt.build: line 114:
-sh: cd: line 115: can't cd to /home/tc/pypilot_update2
tc@pypilot:~/pypilot_update2$
I'm trying my best to follow instructions found here https://github.com/pypilot/workbook/wiki...r-the-hood , but there are probably some details missing, or that I have misunderstood...
Best regards, Leif