Skip to content

Commit

Permalink
#570 Corrected const assignment problem
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Oct 8, 2020
1 parent bcb265c commit f7b97f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/src/lighthouse/lighthouse_calibration.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void lighthouseCalibrationApplyV1(const lighthouseCalibration_t* calib, const fl
}

static void idealToDistortedV2(const lighthouseCalibration_t* calib, const float* ideal, float* distorted) {
const float t30 = M_PI / 6;
static const float tan30 = tanf(t30);
const float t30 = (float)M_PI / 6.0f;
const float tan30 = 0.5773502691896258; // const float tan30 = tanf(t30);

const float a1 = ideal[0];
const float a2 = ideal[1];
Expand Down

0 comments on commit f7b97f9

Please sign in to comment.