Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 60316be3 authored by Eike Hein's avatar Eike Hein

Point README.md at kirogi.org for the screenshot.

parent a6798883
......@@ -4,7 +4,7 @@ Kirogi is a ground control application for drones. Take to the skies, open sourc
### Screenshot
![A screenshot of Kirogi's in-flight UI](https://www.kde.org/images/screenshots/kirogi.png "Kirogi's in-flight UI")
![A screenshot of Kirogi's in-flight UI](https://kirogi.org/assets/img/kirogi.webp "Kirogi's in-flight UI")
### Features
......
......@@ -20,7 +20,7 @@
import QtQuick 2.12
import QtQuick.Controls 2.12 as QQC2
import QtGamepad 1.12
// import QtGamepad 1.12
import org.kde.kirigami 2.6 as Kirigami
......@@ -941,44 +941,44 @@ Kirigami.Page {
handleClosedIcon.source: "configure"
}
Connections {
target: GamepadManager
onGamepadConnected: deviceId = deviceId
}
Gamepad {
id: gamepad
deviceId: GamepadManager.connectedGamepads.length > 0 ? GamepadManager.connectedGamepads[0] : -1
onAxisLeftXChanged: {
if (kirogi.flying && inputMode.selectedMode == 1) {
kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
}
}
onAxisLeftYChanged: {
if (kirogi.flying && inputMode.selectedMode == 1) {
kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
}
}
onAxisRightXChanged: {
if (kirogi.flying && inputMode.selectedMode == 1) {
kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
}
}
onAxisRightYChanged: {
if (kirogi.flying && inputMode.selectedMode == 1) {
kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
}
}
}
// Connections {
// target: GamepadManager
// onGamepadConnected: deviceId = deviceId
// }
//
// Gamepad {
// id: gamepad
//
// deviceId: GamepadManager.connectedGamepads.length > 0 ? GamepadManager.connectedGamepads[0] : -1
//
// onAxisLeftXChanged: {
// if (kirogi.flying && inputMode.selectedMode == 1) {
// kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
// axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
// }
// }
//
// onAxisLeftYChanged: {
// if (kirogi.flying && inputMode.selectedMode == 1) {
// kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
// axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
// }
// }
//
// onAxisRightXChanged: {
// if (kirogi.flying && inputMode.selectedMode == 1) {
// kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
// axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
// }
// }
//
// onAxisRightYChanged: {
// if (kirogi.flying && inputMode.selectedMode == 1) {
// kirogi.currentVehicle.pilot(axisRightX * 100, (axisRightY < 0 ? Math.abs(axisRightY) : -axisLeftY) * 100,
// axisLeftX * 100, (axisLeftY < 0 ? Math.abs(axisLeftY) : -axisLeftY) * 100);
// }
// }
// }
Component.onCompleted: videoPlayer.playing = kirogiSettings.flying
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment