Skip to content

Instantly share code, notes, and snippets.

View sainquake's full-sized avatar

sainquake

View GitHub Profile
@sainquake
sainquake / tethered.md
Last active November 30, 2023 07:46
Tethered drone modifications
  • Motors should be turned outwards: Now it has turned in the direction of the red arrow, but we want to turn it in the direction of the green arrow.

image

  • Remove:
    • Autopilot
    • RTK module from drone
    • RTK module from base
    • Radio link: GC and Airunit
  • Add hole to allow drone with camera to be placed in box without removing camera.
@sainquake
sainquake / py.py
Last active January 16, 2024 07:27
pycyphal
import pycyphal
import pycyphal.application
import uavcan.node # noqa
import uavcan.si.sample.temperature # noqa
import uavcan.si.unit.temperature # noqa
import uavcan.si.unit.voltage # noqa
import asyncio
log:
-action: #Пример добавления чего-то на склад
date: 12.01.2024 14:21:05 #время события
person: 'John Johnson' #Имя и фамилия человека который забрал или положил товар на склад
sku: 'UNIC-STRING' #артикул товара (всегда болшие буквы, нет пробелов, только тире, только англ буквы)
dest: 'Положил на склад' #назначение перемещения
qty: 8 #количество перемещенных штук (знак определяет направление)
sum-cost: 7680 #сумма в рублях нужна при первом добавлении на склад
flags: ['БУ','Присвоить UID'] #флаги позвоялющие передать доп инфу
uid: 0 #уникальный номер позволяющий отслеживать конкретный товар (доолжен быть приклеен на сам товар в виде штрихкода или QR кода)
<#
Run Next command in PowerShell first to enable executable scripts:
Set-ExecutionPolicy RemoteSigned
type: Yes
#>
$env:UAVCAN__CAN__IFACE = "slcan:COM16@1000000" # COM16 should be replaced with the exact name of your device.
$env:UAVCAN__CAN__MTU = "8"
$env:UAVCAN__CAN__BITRATE = "1000000 1000000"
$env:UAVCAN__NODE__ID = "127"
$env:CYPHAL_PATH = "C:\workspace\pycyphal\demo\public_regulated_data_types" #path should be replaced with the exact location of your compiled DSDL.