Andrew Tridgell 2 лет назад
Родитель
Сommit
dcc36ccb58

+ 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 holybro-RemoteID
+all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 bluemark-db202 bluemark-db210 bluemark-db203 holybro-RemoteID CUAV-RID
 
 esp32s3dev: CHIP=esp32s3
 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin
@@ -50,6 +50,9 @@ bluemark-db203: ArduRemoteID-BLUEMARK_DB203.bin
 holybro-RemoteID: CHIP=esp32c3
 holybro-RemoteID: ArduRemoteID-Holybro_RemoteID.bin
 
+CUAV-RID: CHIP=esp32s3
+CUAV-RID: ArduRemoteID-CUAV_RID.bin
+
 setup:
 	@echo "Installing ESP32 support"
 	$(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml

+ 11 - 0
RemoteIDModule/board_config.h

@@ -149,6 +149,17 @@
 
 #define WS2812_LED_PIN GPIO_NUM_8
 
+#elif defined(BOARD_CUAV_RID)
+#define BOARD_ID 12
+#define PIN_CAN_TX GPIO_NUM_47
+#define PIN_CAN_RX GPIO_NUM_38
+#define PIN_CAN_nSILENT GPIO_NUM_1
+
+#define PIN_UART_TX 18
+#define PIN_UART_RX 17
+
+#define WS2812_LED_PIN GPIO_NUM_48
+
 #else
 #error "unsupported board"
 #endif

BIN
RemoteIDModule/web/images/CUAV.jpg


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

@@ -77,6 +77,11 @@ function page_fill_json_html(json) {
                     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 if (json[v] == "12") {
+                    document.getElementById("logo").src="images/CUAV.jpg";
+                    document.getElementById("logo").alt="CUAV";
+                    document.getElementById("STATUS:BOARD").innerText = "CUAV 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";