Попробовал завести модуль WS217 (чипсет RTL8811) на Raspberry Pi Zero W.
По умолчанию образ Raspbian OS Stretch (kernel 4.14.52+) не поддерживает драйвера для этого модуля.
Использовал драйвера с github:
#!/usr/bin/python | |
import math | |
import rospy | |
from clever import srv | |
from time import sleep | |
from mavros_msgs.srv import SetMode | |
rospy.init_node('Clever3_Flip') |
#!/usr/bin/env python | |
# | |
# Simple github release body-editor | |
# @urpylka Artem Smirnov | |
# | |
# Use: | |
# python git_release.py CONFIG_FILE RELEASE_ID RELEASE_BODY | |
# |
Попробовал завести модуль WS217 (чипсет RTL8811) на Raspberry Pi Zero W.
По умолчанию образ Raspbian OS Stretch (kernel 4.14.52+) не поддерживает драйвера для этого модуля.
Использовал драйвера с github:
Заметка основана на материалах:
make[1]: *** [override_dh_auto_configure] Error 2
)#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim:set ts=4 sw=4 et: | |
# Copyright 2019 Artem Smirnov | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
import piexif | |
import re | |
import datetime | |
class GpsIdf(object): | |
def __init__(self, gpsIdf): | |
self.gpsIdf = gpsIdf |
import os | |
import piexif | |
from fractions import Fraction | |
def to_deg(value, loc): | |
"""convert decimal coordinates into degrees, munutes and seconds tuple | |
Keyword arguments: value is float gps-value, loc is direction list ["S", "N"] or ["W", "E"] | |
return: tuple like (25, 13, 48.343 ,'N') | |
""" |
# ---------------------------- | |
# pgPool-II configuration file | |
# ---------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# Whitespace may be used. Comments are introduced with "#" anywhere on a line. | |
# The complete list of parameter names and allowed values can be found in the |
########################### | |
# bcm2835_unicam drivers # | |
########################### | |
# DESCRIPTION: Install bcm2835_unicam/tc358743 drivers from 6by9 Linux fork | |
# This should also work for adv7282m ov5647 (https://github.com/6by9/linux/commit/28ac7b3a2651d4b35204938e6c9ec2e4ba54c34e) | |
# | |
# CAUTION | |
# * Do not start this script! Copy/Paste each command. | |
# * Compilation will take over 1h30. | |
# * Any errors can potentially break the entire system |
#! /usr/bin/env python3 | |
def rotate(matrix): | |
""" | |
Do not return anything, modify matrix in-place instead. | |
""" | |
n = len(matrix) | |
x = 0 | |
y = 0 |