Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
the RF wired directly? Or the RF wired through atmega connected by SPI?
You can test it better stopping the hat service, and running
pypilot/hat/lircd.py
Ensure there are events reported from pressing keys.
Also check the IR it can receive directly from lirc, or via IR over atmega via SPI, so there is a radio option on the 33333 page.
Posts: 33
Threads: 4
Joined: Oct 2020
Reputation:
1
2022-03-31, 04:30 AM
(This post was last modified: 2022-03-31, 04:32 AM by esm.)
I tried to update pypilot to the .34 version, and I am missing LIRC. The pypilot hat is not being recognized, the imu is found, but the screen is not working and can't access with the remote. I have tried to update this to no avail. I tried the install Sean suggested, and the other option with updating through the peppy fix suggested, but can't get LIRC to load:
pi@openplotter:~ $ pip freeze
arandr==0.1.9
asn1crypto==0.24.0
blinker==1.4
Click==7.0
colorama==0.3.7
colorzero==1.1
configparser==3.5.0b2
cryptography==2.6.1
entrypoints==0.3
enum34==1.1.6
Flask==1.0.2
gpiozero==1.5.1
gps==3.17
ipaddress==1.0.17
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
numpy==1.16.2
picamera==1.13
pigpio==1.44
pycairo==1.16.2
pycrypto==2.6.1
PyGObject==3.30.4
pyinotify==0.9.6
pyOpenSSL==19.0.0
pyserial==3.4
pyxdg==0.25
RPi.GPIO==0.7.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.12.0
spidev==3.4
Werkzeug==0.14.1
pi@openplotter:~ $ pypilot_hat
hat start 4259.637115802
have gpio for raspberry pi
hat import done 4259.699306098
loading config file: /home/pi/.pypilot/hat.conf
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
host localhost
lcd process on 27500
lcd driver default False True
using glut
hat init complete 4260.927060515
27521 (process ID) old priority 0, new priority 19
failed to load lirc No module named 'lirc'
have old lirc for remote control
do_connect: could not connect to socket
connect: No such file or directory
failed to initialize lirc. is .lircrc missing? Unable to initialize lirc!
set language en
create font charater b 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023098
create font charater a 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023097
create font charater s 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023115
create font charater i 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023105
create font charater c 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023099
got signal 17 cleaning up 27419
child process (27500, 0) [27521, 27500]
Traceback (most recent call last):
File "/usr/local/bin/pypilot_hat", line 11, in <module>
load_entry_point('pypilot==0.34', 'console_scripts', 'pypilot_hat')()
File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 547, in main
hat.poll()
File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 539, in poll
e=self.poller.poll(1000*period)
got signal 17 cleaning up 27419
subprocess returned (27521, 15) []
File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 377, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
2022-03-31, 07:59 AM
(This post was last modified: 2022-03-31, 08:00 AM by seandepagnier.)
Its the wrong version of lirc or you don't have pylirc installed.
To get the screen working.. which hardware are you using? The hat is not recognized so it lacks an eeprom or did you boot with it installed?
In any case you can edit ~/.pypilot/hat.conf and manually specify the lcd type if it can't take the hint from the hat's eeprom
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
Can you show a picture of your setup so I can verify what you are working with? There are several changing versions of hardware.
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
Does the blue light show when a remote control button is pressed?