Skip to main content

This is a sensor data oscilloscope for xkit.

Project description

This is a sensor data oscilloscope for xkit.

History

  • V1.0.0
    • Real-time sensor data plotting
    • Supports plotting up to 16 data
    • Support plotting selection
    • Supports saving collected data as csv format file
    • UDPServer or MulticastReceiver

Install

pip install quat

Dependencies

  • PySide6
  • PythonQwt
  • numpy
  • genlib

Run

UDP Server (default port 7321)

smon

MulticastReceiver (default group 239.8.7.6, default port 7321)

smon --mcast

options
--mcast --group=<group> (default 239.8.7.6) --iport=<port> (default 7321) --log=<stream | file>

Client Implementations

  • UDPClient or MulticastSender

sensor data format

x, y, z, ...

Example

import time
from genlib.upd import UDPClient
from pop.ext import IMU

imu = IMU()
udp = UDPClient()

SMON_IP = '192.168.0.100'
SMON_PORT = 7321

while True:
    w, x, y, z = imu.read(IMU.QUATERNION)
    data = "{},{},{},{},".format(w, x, y, z)
    x, y, z = imu.read(IMU.ACCELERATION)
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.GYROSCOPE) 
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.MAGNETIC)
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.EULER)
    data += "{},{},{}".format(x, y, z)

    udp.sendTo(data.encode(), (SMON_IP, SMON_PORT))
    time.sleep(20/1000)  

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smon-1.0.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

smon-1.0.0-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file smon-1.0.0.tar.gz.

File metadata

  • Download URL: smon-1.0.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for smon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a1178ad7eff4b498b77d06c73cea07df55c4b21fc06652e01ab9203fa65b710
MD5 f99cdb9ba627cc40cad02f23b6fbeb65
BLAKE2b-256 2c217cfdae4a78f5b3f4f81e369b8d65e08fa7d277f7bc587bc298a11e420695

See more details on using hashes here.

File details

Details for the file smon-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: smon-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for smon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f16338059ed9da51c043a0520f7ea99c1e4306c2343e028c1c3b3245e93d6723
MD5 1094c0347851172b6babc2e537e4bba3
BLAKE2b-256 50c36de8b05ca4de37759b8ee4ed5e83b984749279f7445531f21d37121253c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page