Skip to content

Commit c95995a

Browse files
committed
add old generation parameters for M750d sonar
1 parent 19bef52 commit c95995a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

include/liboculus/Constants.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,30 @@ const uint16_t DataPort = 52100;
4646
const uint8_t PacketHeaderLSB = (OCULUS_CHECK_ID & 0x00FF);
4747
const uint8_t PacketHeaderMSB = (OCULUS_CHECK_ID & 0xFF00) >> 8;
4848

49+
namespace Oculus_750KHz {
50+
const float ElevationBeamwidthDeg = 20.0;
51+
const float ElevationBeamwidthRad = 20.0 * M_PI / 180.0;
52+
53+
const float AzimuthBeamwidthDeg = 1.0;
54+
const float AzimuthBeamwidthRad = 1.0 * M_PI / 180.0;
55+
56+
const float MaxRange = 120; // meters
57+
}; // namespace Oculus_750KHz
58+
59+
namespace Oculus_1200MHz_Old {
60+
const float ElevationBeamwidthDeg = 12.0;
61+
const float ElevationBeamwidthRad = 12.0 * M_PI / 180.0;
62+
63+
const float AzimuthBeamwidthDeg = 0.6;
64+
const float AzimuthBeamwidthRad = 0.6 * M_PI / 180.0;
65+
66+
//! NOTE:(by LinZhao) for old generation 1.2MHz,
67+
// M750d max range is 40m, M1200d max range is 30m
68+
// Maybe set a specfic name for 1.2MHz, since
69+
// the beamwidth changes between generation and model ?
70+
const float MaxRange = 40;
71+
}; // namespace Oculus_1200MHz_Old
72+
4973
namespace Oculus_1200MHz {
5074
const float ElevationBeamwidthDeg = 20.0;
5175
const float ElevationBeamwidthRad = 20.0 * M_PI / 180.0;

0 commit comments

Comments
 (0)