-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only ~52% of CPU available - background processes #314
Comments
On Mon, 30 May 2016, Alex Black wrote:
No. They're there for a reason :-) OTOH, you can probably do without
Not sure what this does. I do believe it is smart shots, 'though.
telem_forwarder takes telemetry data from the PixHawk and gives it out to Kill this one if you don't care about being able to fly your Copter....
Likewise :-) Peter Barker | Programmer,Sysadmin,Geek. |
@peterbarker ok, so sounds like I can kill What is Artoo? |
Say my goal here is to fly the drone as bare bones as possible, is there anything else I might be able to do without?
|
Artoo is the internal name for the Solo Controller. The forwarder sends telemetry to the controller. |
I've freed up a lot of the CPU from background processes by commenting out these lines in
Then, before calling
This combined with setting my process priority higher:
Has got my process's CPU usage up from ~52% to ~92%. |
I'm processing images on the Solo, and realizing that performance is slower than it might be due to background processes using some of the CPU. For example, after killing some processes time to run
cv2.Canny
on an image dropped from 250ms to 150ms.I wrote a python program
cpu.py
to do an infinite loop, and top reports it uses ~52% cpu:Can I kill some of these processes without much impact? I'm flying the drone using
dronekit
, but also using the remote occasionally to abort a flight, or move the drone around manually. Not using the gimbal, or smart shot, or much else./usr/bin/main.py
- Looks like used for smart shot?/usr/bin/telem_forwarder
- Looks like used for smart shot?/usr/bin/pixrc
- when I killed this the drone made a noise and lights flashed... d'ohSample CPU logging:
The text was updated successfully, but these errors were encountered: