Skip to content

Commit

Permalink
add CM3
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 12, 2024
1 parent 2d4faa7 commit fa578e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/telemetry/models/openhd_core/camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ static std::vector<ManufacturerForPlatform> get_camera_choices_for_platform(
return std::vector<ManufacturerForPlatform>{
ManufacturerForPlatform{"HDZERO", generic_cameras},
ManufacturerForPlatform{"RUNCAM", runcam_cameras}};
} else if (platform_type == X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_ZERO3W) {
} else if ((platform_type == X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_ZERO3W) || (platform_type == X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_CM3)) {
std::vector<CameraNameAndType> arducam_cameras{
CameraNameAndType{"IMX219", X_CAM_TYPE_ROCK_RK3566_IMX219},
CameraNameAndType{"PLACEHOLDER1", X_CAM_TYPE_ROCK_RK3566_PLACEHOLDER1},
Expand Down
3 changes: 3 additions & 0 deletions app/telemetry/models/openhd_core/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static constexpr int X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_ZERO3W =
static constexpr int X_PLATFORM_TYPE_ROCKCHIP_RK3588_RADXA_ROCK5_A = 21;
static constexpr int X_PLATFORM_TYPE_ROCKCHIP_RK3588_RADXA_ROCK5_B = 22;
static constexpr int X_PLATFORM_TYPE_ROCKCHIP_RV1126_UNDEFINED = 23; // FUTURE
static constexpr int X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_CM3 = 24; // FUTURE

// Numbers 30..35 are reserved for allwinner
static constexpr int X_PLATFORM_TYPE_ALWINNER_X20 = 30;
Expand All @@ -53,6 +54,8 @@ static std::string x_platform_type_to_string(int platform_type) {
// RPI END
case X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_ZERO3W:
return "RADXA ZERO3W";
case X_PLATFORM_TYPE_ROCKCHIP_RK3566_RADXA_CM3:
return "RADXA CM3";
case X_PLATFORM_TYPE_ROCKCHIP_RK3588_RADXA_ROCK5_A:
return "RADXA ROCK5 A";
case X_PLATFORM_TYPE_ROCKCHIP_RK3588_RADXA_ROCK5_B:
Expand Down

0 comments on commit fa578e3

Please sign in to comment.