Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup: ZWO gain=0.1 dB , RPiHQ gain=factor #826

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/capture_RPiHQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,10 @@ const char *locale = DEFAULT_LOCALE;
{
long last_exposure_us = currentExposure_us;

long actualGain = currentGain; // to be compatible with ZWO
//long actualGain = currentGain; // to be compatible with ZWO
float actualGain = currentGain; // to be compatible with ZWO - ZWO gain=0.1 dB , RPiHQ gain=factor
if (myModeMeanSetting.mode_mean)
actualGain = myRaspistillSetting.analoggain;
int iYOffset = 0;
float mean = -1;

Expand Down Expand Up @@ -1687,7 +1690,8 @@ const char *locale = DEFAULT_LOCALE;

if (showGain == 1)
{
sprintf(bufTemp, "Gain: %ld", actualGain);
//sprintf(bufTemp, "Gain: %ld", actualGain);
sprintf(bufTemp, "Gain: %1.2f", actualGain);
// Indicate if in auto gain mode.
if (currentAutoGain == ASI_TRUE) strcat(bufTemp, " (auto)");
cvText(pRgb, bufTemp, iTextX, iTextY + (iYOffset / currentBin),
Expand Down