Skip to content

Commit a14c388

Browse files
committed
Changes
1 parent 706d2d1 commit a14c388

File tree

5 files changed

+55
-2
lines changed

5 files changed

+55
-2
lines changed

docker-compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,32 @@ services:
6666
networks:
6767
- natkit-v0-kafka-network
6868

69+
mosquitto:
70+
image: eclipse-mosquitto:2.0.18
71+
hostname: mosquitto
72+
container_name: mosquitto
73+
restart: unless-stopped
74+
ports:
75+
- "1883:1883"
76+
- "9001:9001"
77+
volumes:
78+
- ./mosquitto/etc:/etc/mosquitto
79+
- ./mosquitto/log:/mosquitto/log
80+
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
81+
82+
ntp:
83+
image: cturra/ntp:latest
84+
container_name: ntp
85+
restart: always
86+
ports:
87+
- 123:123/udp
88+
environment:
89+
- NTP_SERVERS=subitaneous.cpsc.ucalgary.ca
90+
- LOG_LEVEL=0
91+
- TZ=America/Edmonton
92+
# - NOCLIENTLOG=true
93+
# - ENABLE_NTS=true
94+
6995
networks:
7096
natkit-v0-kafka-network:
7197
external: false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from PyQt6.QtGui import QPixmap
2+
from PyQt6.QtWidgets import QLabel
3+
from PyQt6.QtWidgets import QWidget
4+
5+
6+
class ImuImageWidget(QWidget):
7+
def __init__(self, imageFile: str, *args, **kwargs):
8+
super().__init__(*args, **kwargs)
9+
10+
self.layout = QVBoxLayout()
11+
self.pixmap = QPixmap(imageFile)
12+
self.image_label = QLabel(self.layout)
13+
label.setPixmap(self.pixmap)
14+
self.setLayout(self.layout)
15+
16+
def sizeHint(self):
17+
return QSize(40, 120)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from PyQt5.QtCore import QUrl
2+
from PyQt6.QtMultimedia import QSoundEffect
3+
4+
5+
class ImuSoundEffect:
6+
def __init__(self, audio_file: str):
7+
self.sound_effect = QSoundEffect()
8+
self.sound_effect.setSource(QUrl.fromLocalFile(audio_file))
9+
self.sound_effect.setLoopCount(-2)
10+
11+
def play(self):
12+
self.sound_effect.play()

third-party/Catch2

Submodule Catch2 deleted from 0c62167

third-party/modern-cpp-kafka

Submodule modern-cpp-kafka deleted from b5f3b40

0 commit comments

Comments
 (0)