camera can't open, I ensure running ‘sudo raspi-congig’ enable camera.
connecting to vehicle on /dev/ttyACM0, baud=921600
APM:Copter V3.6-dev (0626d105)
PX4: fc469199 NuttX: 1bcae90b
PX4v2 002C002E 33355114 39383934
Frame: QUAD
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/farsight/pi/ardupilot-balloon-finder/scripts/balloon_video.py", line 155, in image_capture_background
self.init_camera()
File "/home/farsight/pi/ardupilot-balloon-finder/scripts/balloon_video.py", line 80, in init_camera
self.camera = PiCamera()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 415, in init
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 444, in _init_camera
"Camera is not enabled. Try running 'sudo raspi-config' "
PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.
fetching mission..
retrieved mission with 0 commands
waiting for home location..
fetching mission..
retrieved mission with 0 commands
We want to save config info like the image size, camera field of view, colour filter's H, S and V values to the SD card so that it can be easily modified.
There's a noticeable lag in the display of the artificial horizon in the balloon-strategy script which indicates that the image capture and vehicle attitude are being captured at slightly different times.
I using Raspberry 3B and checked serial port connect correct . when I run start_balloon_finder.sh or balloon_strategy.py appera this problem:
=========================================================
farsight@linux:~/ardupilot-balloon-finder/startup$ sudo ./start_balloon_finder.sh
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/bin:/sbin:/usr/bin:/usr/local/bin:/home/farsight/ardupilot-balloon-finder:/home/farsight/ardupilot-balloon-finder/scripts
PYTHONPATH: :/home/farsight/ardupilot-balloon-finder/scripts
Traceback (most recent call last):
File "balloon_strategy.py", line 13, in
from find_balloon import balloon_finder
File "/home/farsight/ardupilot-balloon-finder/scripts/find_balloon.py", line 19, in
from web_server import Webserver
File "/home/farsight/ardupilot-balloon-finder/scripts/web_server.py", line 1, in
import cherrypy
File "/home/farsight/.local/lib/python2.7/site-packages/cherrypy/init.py", line 73, in
from ._cptools import default_toolbox as tools, Tool
File "/home/farsight/.local/lib/python2.7/site-packages/cherrypy/_cptools.py", line 31, in
from cherrypy.lib import cptools, encoding, auth, static, jsontools
File "/home/farsight/.local/lib/python2.7/site-packages/cherrypy/lib/auth.py", line 2, in
from cherrypy.lib import httpauth
File "/home/farsight/.local/lib/python2.7/site-packages/cherrypy/lib/httpauth.py", line 27, in
from six.moves.urllib.request import parse_http_list, parse_keqv_list
ImportError: cannot import name parse_http_list
start_balloon_finder.sh done