https://github.com/ExpressLRS/ExpressLRS/wiki/CRSF-Protocol
↑まずはコレを読む
- RX側: 全二重(Full Duplex) 42000 Baud / N81
- TX側: 半二重(Half Duplex)
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_task_wdt.h" | |
#include "driver/gpio.h" | |
TaskHandle_t loopTaskHandle = NULL; |
// UnityからAndroidのCamera LEDを制御する例 | |
// startPreview() でカメラのプレビューを開始した状態で LEDOn() で光る | |
public class AndroidCamera { | |
AndroidJavaObject camera = null; | |
public AndroidCamera() { | |
WebCamDevice[] devices = WebCamTexture.devices; | |
Debug.Log("Camera Name:"+devices[0].name); |
https://github.com/ExpressLRS/ExpressLRS/wiki/CRSF-Protocol
↑まずはコレを読む
#include <M5Unified.h> | |
#include <Avatar.h> | |
using namespace m5avatar; | |
Avatar avatar; | |
#define SERVO_PIN_A 21 | |
#define SERVO_PIN_B 22 | |
void setup() |
// M5Atom Lite + AtomFly2 モーター制御 by GOROman | |
#include <M5Atom.h> | |
// モーターの数 | |
const int MOTOR_COUNT = 4; | |
// モーターのGPIOピンアサイン | |
const int MOTOR_PINS[] = { | |
22, // [A] FL |
#include <M5Stack.h> | |
#define PACKED __attribute__((packed)) | |
#define SERIAL_BAUDRATE 420000 // ELRS モジュールの通信速度 | |
#define GPIO_PIN_RCSIGNAL_TX 21 // ELRS TX モジュールとの接続ピン(半二重) | |
#define GPIO_PIN_RCSIGNAL_RX 21 // ELRS TX モジュールとの接続ピン(半二重) | |
// ELRS受信テスト | |
#include <Arduino.h> | |
#define ELRS_RX_PIN 21 | |
#define ELRS_TX_PIN 22 | |
#define ELRS_BAUD 420000 | |
#define CRSF_DEVICEADDR_FC 0xC8 | |
#define CRSF_FRAME_LENGTH 24 |
TBS Fusionを解析しているので覚書
FPVドローン用の5.8GHz帯映像レシーバー。主にFPVゴーグルに接続して使う。他のレシーバー同様ダイバーシティアンテナで2系統のアンテナ入力がある。