2023-04-20, 06:41 PM
(2023-04-16, 03:45 PM)seandepagnier Wrote: So your original IMU was bad?
Probably. I use the same RPI as before, with the same settings. I have just crossed from France to England, everything went perfectly well.
Quote:What kind of error message did you see related to pypilot_hat? What do you mean the executable doesnt produce any results?
The LCD display shows nothing.
Code:
$ pypilot_hat
hat start 81252.403403063
have gpio for raspberry pi
hat import done 81252.440801153
loading config file: /home/guillaume/.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 10824
lcd driver default False False
hat init complete 81253.649992655
10826 (process ID) old priority 0, new priority 19
have lirc for remote control 0.16617706899705809
web process 10826
web process on port 33333
Code:
jq . ~/.pypilot/hat.conf
{
"host": "localhost",
"actions": {
"auto": [],
"menu": [],
"port1": [],
"starboard1": [],
"select": [],
"port10": [],
"starboard10": [],
"tack": [],
"dodge_port": [],
"dodge_starboard": [],
"engage": [],
"disengage": [],
"1": [],
"-1": [],
"2": [],
"-2": [],
"5": [],
"-5": [],
"10": [],
"-10": [],
"compassmode": [],
"gpsmode": [],
"windmode": [],
"truewindmode": [],
"center": [],
"tackport": [],
"tackstarboard": [],
"none": [],
"pilot_absolute": [],
"pilot_basic": []
},
"pi.ir": true,
"arduino.ir": false,
"arduino.nmea.in": false,
"arduino.nmea.out": false,
"arduino.nmea.baud": 4800,
"lcd": {},
"hat": {
"lcd": {
"driver": "default",
"port": "/dev/spidev0.0"
},
"lirc": "gpio4"
}
}
I tried to change the value of "driver" without success.