Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyselk committed Jan 24, 2024
1 parent 706d2d1 commit a14c388
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,32 @@ services:
networks:
- natkit-v0-kafka-network

mosquitto:
image: eclipse-mosquitto:2.0.18
hostname: mosquitto
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/etc:/etc/mosquitto
- ./mosquitto/log:/mosquitto/log
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf

ntp:
image: cturra/ntp:latest
container_name: ntp
restart: always
ports:
- 123:123/udp
environment:
- NTP_SERVERS=subitaneous.cpsc.ucalgary.ca
- LOG_LEVEL=0
- TZ=America/Edmonton
# - NOCLIENTLOG=true
# - ENABLE_NTS=true

networks:
natkit-v0-kafka-network:
external: false
17 changes: 17 additions & 0 deletions examples/imu_experiment/src/widgets/imu_image_widget.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from PyQt6.QtGui import QPixmap
from PyQt6.QtWidgets import QLabel
from PyQt6.QtWidgets import QWidget


class ImuImageWidget(QWidget):
def __init__(self, imageFile: str, *args, **kwargs):
super().__init__(*args, **kwargs)

self.layout = QVBoxLayout()
self.pixmap = QPixmap(imageFile)
self.image_label = QLabel(self.layout)
label.setPixmap(self.pixmap)
self.setLayout(self.layout)

def sizeHint(self):
return QSize(40, 120)
12 changes: 12 additions & 0 deletions examples/imu_experiment/src/widgets/imu_sound_effect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from PyQt5.QtCore import QUrl
from PyQt6.QtMultimedia import QSoundEffect


class ImuSoundEffect:
def __init__(self, audio_file: str):
self.sound_effect = QSoundEffect()
self.sound_effect.setSource(QUrl.fromLocalFile(audio_file))
self.sound_effect.setLoopCount(-2)

def play(self):
self.sound_effect.play()
1 change: 0 additions & 1 deletion third-party/Catch2
Submodule Catch2 deleted from 0c6216
1 change: 0 additions & 1 deletion third-party/modern-cpp-kafka
Submodule modern-cpp-kafka deleted from b5f3b4

0 comments on commit a14c388

Please sign in to comment.