fix: 修改camera寄存器地址,同时修改前端逻辑
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user