Parcourir la source

added Holybro-RemoteID board

Andrew Tridgell il y a 2 ans
Parent
commit
5d3f42b00a

+ 4 - 1
RemoteIDModule/Makefile

@@ -15,7 +15,7 @@ export PATH := $(HOME)/.local/bin:$(PATH)
 
 .PHONY: headers
 
-all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 bluemark-db202 bluemark-db210 bluemark-db203
+all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 bluemark-db202 bluemark-db210 bluemark-db203 holybro-RemoteID
 
 esp32s3dev: CHIP=esp32s3
 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin
@@ -47,6 +47,9 @@ bluemark-db210: ArduRemoteID-BLUEMARK_DB210.bin
 bluemark-db203: CHIP=esp32c3
 bluemark-db203: ArduRemoteID-BLUEMARK_DB203.bin
 
+holybro-RemoteID: CHIP=esp32c3
+holybro-RemoteID: ArduRemoteID-Holybro_RemoteID.bin
+
 setup:
 	@echo "Installing ESP32 support"
 	$(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml

+ 10 - 0
RemoteIDModule/board_config.h

@@ -139,6 +139,16 @@
 // LED off when ready to arm
 #define STATUS_LED_OK 0
 
+#elif defined(BOARD_Holybro_RemoteID)
+#define BOARD_ID 11
+#define PIN_CAN_TX GPIO_NUM_5
+#define PIN_CAN_RX GPIO_NUM_4
+
+#define PIN_UART_TX 3
+#define PIN_UART_RX 2
+
+#define WS2812_LED_PIN GPIO_NUM_8
+
 #else
 #error "unsupported board"
 #endif

BIN
RemoteIDModule/web/images/holybro.jpg


+ 5 - 0
RemoteIDModule/web/js/tools.js

@@ -72,6 +72,11 @@ function page_fill_json_html(json) {
                     document.getElementById("STATUS:BOARD").innerText = "BlueMark db203can";
                     document.getElementById("documentation").innerHTML = "<ul><li><a href='https://download.bluemark.io/db200.pdf'>db200 series manual</a></li><li><a href='https://ardupilot.org/ardupilot/index.html'>ArduPilot Project</a></li><li><a href='https://github.com/ArduPilot/ArduRemoteID'>ArduRemoteID Project</a></li><li><a href='https://ardupilot.org/plane/docs/common-remoteid.html'>ArduPilot RemoteID Documentation</a></li><li><a href='https://www.opendroneid.org/'>OpenDroneID Website</a></li></ul>";
                     document.body.style.background = "#fafafa";
+                } else if (json[v] == "11") {
+                    document.getElementById("logo").src="images/holybro.jpg";
+                    document.getElementById("logo").alt="Holybro";
+                    document.getElementById("STATUS:BOARD").innerText = "Holybro RemoteID";
+                    document.getElementById("documentation").innerHTML = "<ul><li><a href='https://ardupilot.org/ardupilot/index.html'>ArduPilot Project</a></li><li><a href='https://github.com/ArduPilot/ArduRemoteID'>ArduRemoteID Project</a></li><li><a href='https://ardupilot.org/plane/docs/common-remoteid.html'>ArduPilot RemoteID Documentation</a></li><li><a href='https://www.opendroneid.org/'>OpenDroneID Website</a></li></ul>";
                 } else {
                     document.getElementById("logo").src="images/logo.jpg";
                     document.getElementById("logo").alt="ArduPilot";