Skip to content
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

Use libcamera for image capture, more robust radio IC handling #15

Closed
wants to merge 36 commits into from

Conversation

darksidelemm
Copy link
Member

A few major changes in here:

  • Move to using the newer libcamera api to control the camera. This adds support for PiCamv3, though these have focus drift issues with temperature, so are not recommended for flight.
  • Abstract the radio control and modulation somewhat, and move radio initialisation into the main operating scripts (e.g. tx_picamera2_gps.py

Some minor changes to the RX webGUI:

  • Add timestamps before received text messages.

This needs a lot of testing before I'll be willing to fly it on a launch!

@ke5gdb
Copy link
Collaborator

ke5gdb commented Sep 16, 2024

Everything seems to be going well with my test setup and this latest version. I do have a few notes, but they all pertain to documentation and configuration. These notes are from a Raspberry Pi OS Lite 64-bit install in a Pi 3.

NTP in Debian Bookworm is now ntpsec. The configuration file has moved to /etc/ntpsec/ntpsec.conf. This is a drop-in replacement for the old NTP that was available in previous releases.

To use the systemd-timedatectld (timedatectl), it needs to be made aware that ntpsec exists and is the NTP daemon of choice. Adding the unit file name to a specific file (per these instructions) will accomplish this. The impact of not doing this is that timedatectl set-ntp 1 or timedatectl set-ntp 0 will always error out, preventing the NTP sync from happening as designed.

sudo mkdir /etc/systemd/ntp-units.d
echo "ntpsec.service" | sudo tee /etc/systemd/ntp-units.d/80-systemd-timesync.list

When installing python3-picamera2, adding the --no-install-recommends is highly suggested. There are a lot of desktop related packages that it wants to install for live image preview, which defeats the purpose of the Lite version of the OS.

I believe that is all. I will comment again if I think of anything else.

Mark Jessop and others added 25 commits September 21, 2024 16:14
…ny exceptions from the capture function and re-initialise the camera
Added get_temperature function to radio_wrappers.py
…epancy (and it makes the math so much easier)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants