Skip to content
Snippets Groups Projects
  • Artem Sidyakin's avatar
    acda1e7f
    Camera control · acda1e7f
    Artem Sidyakin authored
    - backend class for camera control (via Python script, no time for proper I2C)
    - checking/creating the folder for shots
    - properties to control some general settings
    - proper handling upside down camera
    - tabs code moved to dedicated files
    - message box for errors
    - deployment actions
    Camera control
    Artem Sidyakin authored
    - backend class for camera control (via Python script, no time for proper I2C)
    - checking/creating the folder for shots
    - properties to control some general settings
    - proper handling upside down camera
    - tabs code moved to dedicated files
    - message box for errors
    - deployment actions
backend.h 459 B
#ifndef BACKEND_H
#define BACKEND_H

#include <QObject>
#include <QProcess>
#include <QStringList>
#include <QDebug>

class Backend : public QObject
{
    Q_OBJECT
public:
    explicit Backend(QObject *parent = nullptr);

signals:
    void someError(QString errorMsg);

public slots:
    bool movePanTilt(QString basePath, int pan, int tilt);
    static QString getBasePath(QString applicationDirPath);

private:
    QProcess process;
};

#endif // BACKEND_H