fix: 修改camera寄存器地址,同时修改前端逻辑

This commit is contained in:
2025-07-11 13:22:42 +08:00
parent d83bc250bd
commit bdffba7576
3 changed files with 36 additions and 14 deletions

View File

@@ -162,13 +162,7 @@ public class VideoStreamController : ControllerBase
logger.Info("获取摄像头配置");
var cameraStatus = _videoStreamService.GetCameraStatus();
return TypedResults.Ok(new
{
address = _videoStreamService.CameraAddress,
port = _videoStreamService.CameraPort,
isConfigured = cameraStatus.GetType().GetProperty("IsConfigured")?.GetValue(cameraStatus),
connectionString = $"{_videoStreamService.CameraAddress}:{_videoStreamService.CameraPort}"
});
return TypedResults.Ok(cameraStatus);
}
catch (Exception ex)
{

View File

@@ -7,9 +7,9 @@ static class CameraAddr
{
public const UInt32 BASE = 0x7000_0000;
public const UInt32 STORE_ADDR = BASE + 12;
public const UInt32 STORE_NUM = BASE + 13;
public const UInt32 CAPTURE_ON = BASE + 14;
public const UInt32 STORE_ADDR = BASE + 0x12;
public const UInt32 STORE_NUM = BASE + 0x13;
public const UInt32 CAPTURE_ON = BASE + 0x14;
}
class Camera