1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

Fix typos in cpp files

This commit is contained in:
Daniele Forsi
2024-07-10 22:59:13 +02:00
parent e56908b0c6
commit 4241f01376
88 changed files with 156 additions and 156 deletions
+4 -4
View File
@@ -84,14 +84,14 @@ Real Projector::run(const Sample& s)
{
// calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (positive side)
// cos(theta) = phi / 2*pi*k
Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not mormalize phi (phi in -pi..+pi)
Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not normalize phi (phi in -pi..+pi)
v = acos(p/M_PI) / M_PI; // normalize theta
}
break;
case ProjectionDOAN:
{
// calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (negative source)
Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not mormalize phi (phi in -pi..+pi)
Real p = std::atan2((float) s.m_imag, (float) s.m_real); // do not normalize phi (phi in -pi..+pi)
v = -acos(p/M_PI) / M_PI; // normalize theta
}
break;
@@ -264,14 +264,14 @@ Real Projector::run(const std::complex<float>& s)
{
// calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (positive side)
// cos(theta) = phi / 2*pi*k
Real p = std::arg(s); // do not mormalize phi (phi in -pi..+pi)
Real p = std::arg(s); // do not normalize phi (phi in -pi..+pi)
v = acos(p/M_PI) / M_PI; // normalize theta
}
break;
case ProjectionDOAN:
{
// calculate phase. Assume phase difference between two sources at half wavelength distance with sources axis as reference (negative source)
Real p = std::arg(s); // do not mormalize phi (phi in -pi..+pi)
Real p = std::arg(s); // do not normalize phi (phi in -pi..+pi)
v = -acos(p/M_PI) / M_PI; // normalize theta
}
break;