Skip to content

Instantly share code, notes, and snippets.

View TakanoTaiga's full-sized avatar
🤯
Rapid Unscheduled Disassembly

Taiga TakanoTaiga

🤯
Rapid Unscheduled Disassembly
View GitHub Profile
@TakanoTaiga
TakanoTaiga / preview.sh
Created May 6, 2024 07:11
material for mkdocs viewer
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs takanotaiga/mkdocs:latest
status key command
Composition Backspace Backspace
Composition Ctrl a MoveCursorToBeginning
Composition Ctrl Backspace Backspace
Composition Ctrl d MoveCursorRight
Composition Ctrl Down MoveCursorToEnd
Composition Ctrl e MoveCursorToBeginning
Composition Ctrl Enter Commit
Composition Ctrl f MoveCursorToEnd
Composition Ctrl g Delete
#include "InterfaceCAN.h"
#include "PinNames.h"
#include "mbed.h"
#include <cstdint>
#include <cstdio>
#include <string>
#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported for this target
#endif
@TakanoTaiga
TakanoTaiga / main.cpp
Created December 19, 2023 14:11
M3508
#include "InterfaceCAN.h"
#include "PinNames.h"
#include "mbed.h"
#include <cstdint>
#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported for this target
#endif
CAN can(PB_8, PB_9, 1000 * 1000);
@TakanoTaiga
TakanoTaiga / i2t.py
Last active February 8, 2024 21:10
i2t ros2
# Copyright 2023 Taiga Takano
#
# 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
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@TakanoTaiga
TakanoTaiga / Hello.SIM.py
Created December 4, 2023 14:28
Hello.SIM
import rclpy
from rclpy.node import Node
from std_msgs.msg import Float32
class MinimalPublisher(Node):
def __init__(self):
super().__init__('minimal_publisher')
! frequency_in_Hz input_voltage output_voltage
10 30 200
20 40 210
30 50 220
40 50.5 230
50 51 240
70 51.5 245
100 52 250
200 52.5 251
300 53 252
@TakanoTaiga
TakanoTaiga / zed-udev.sh
Created October 21, 2023 10:54
Set zed udev
wget -q https://download.stereolabs.com/zedsdk/3.5/jp44/jetsons -O zed_installer.run
bash ./zed_installer.run --tar -x './99-slabs.rules' > /dev/null 2>&1
sudo mv "./99-slabs.rules" "/etc/udev/rules.d/"
sudo chmod 777 "/etc/udev/rules.d/99-slabs.rules"
sudo udevadm control --reload-rules && sudo udevadm trigger
@TakanoTaiga
TakanoTaiga / gm6020.cpp
Last active September 7, 2023 15:32
mbed with gm6020
/*
* Copyright (c) 2017-2020 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*/
#include "InterfaceCAN.h"
#include "PinNames.h"
#include <cstdint>
#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported for this target