Skip to content

Commit

Permalink
change verbose from bool to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Bvallon-sl committed Aug 16, 2023
1 parent 6b934fb commit eefa745
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void USlCameraProxy::Internal_OpenCamera(const FSlInitParameters& InitParameters
sl_init_parameters.depth_mode = (SL_DEPTH_MODE)InitParameters.DepthMode;
sl_init_parameters.enable_right_side_measure = InitParameters.bEnableRightSideMeasure;
sl_init_parameters.sdk_gpu_id = FMath::FloorToInt(InitParameters.GPUID);
sl_init_parameters.sdk_verbose = InitParameters.bVerbose;
sl_init_parameters.sdk_verbose = InitParameters.Verbose;
sl_init_parameters.depth_stabilization = InitParameters.DepthStabilization;
sl_init_parameters.enable_image_enhancement = InitParameters.bEnableImageEnhancement;
sl_init_parameters.sensors_required = InitParameters.bSensorsRequired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ struct STEREOLABS_API FSlInitParameters
Unit(ESlUnit::DU_Centimeter),
CoordinateSystem(ESlCoordinateSystem::CS_Cartesian),
bRealTime(false),
bVerbose(false),
Verbose(0),
bDisableSelfCalibration(false),
VerticalFlipImage(ESlFlipMode::FP_AUTO),
bEnableRightSideMeasure(false),
Expand Down Expand Up @@ -2362,10 +2362,10 @@ struct STEREOLABS_API FSlInitParameters
*Path
);

GConfig->GetBool(
GConfig->GetInt(
Section,
TEXT("bVerbose"),
bVerbose,
TEXT("Verbose"),
Verbose,
*Path
);

Expand Down Expand Up @@ -2553,10 +2553,10 @@ struct STEREOLABS_API FSlInitParameters
*Path
);

GConfig->SetBool(
GConfig->SetInt(
Section,
TEXT("bVerbose"),
bVerbose,
TEXT("Verbose"),
Verbose,
*Path
);

Expand Down Expand Up @@ -2700,7 +2700,7 @@ struct STEREOLABS_API FSlInitParameters

/** Verbose ZED */
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bVerbose;
int Verbose;

/** Disable self calibration */
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,7 @@ namespace sl
InitParameters.depth_mode = sl::unreal::ToSlType(UnrealData.DepthMode);
InitParameters.enable_right_side_measure = UnrealData.bEnableRightSideMeasure;
InitParameters.sdk_gpu_id = FMath::FloorToInt(UnrealData.GPUID);
InitParameters.sdk_verbose = UnrealData.bVerbose;
InitParameters.sdk_verbose = UnrealData.Verbose;
InitParameters.sdk_verbose_log_file = TCHAR_TO_UTF8(*UnrealData.VerboseFilePath);
InitParameters.grab_compute_capping_fps = UnrealData.GrabComputeCappingFPS;
if (UnrealData.InputType == ESlInputType::IT_SVO)
Expand Down

0 comments on commit eefa745

Please sign in to comment.