Skip to content

Commit ddccfcf

Browse files
authored
Merge pull request #23 from apl-ocean-engineering/22-add-support-for-m3000d
Add constants for the Oculus M3000d.
2 parents 7e15968 + 70ef913 commit ddccfcf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/liboculus/Constants.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ namespace liboculus {
5353
const float AzimuthBeamwidthDeg = 0.6;
5454
const float AzimuthBeamwidthRad = 0.6*M_PI/180.0;
5555

56+
// NOTE(lindzey): According to the spec sheet, max range is 30 m
57+
// at 1.2 MHz on the M3000d, but 40 m on the M1200d.
5658
const float MaxRange = 40;
5759
};
5860

@@ -68,6 +70,18 @@ namespace liboculus {
6870
const float MaxRange = 10; // meters
6971
};
7072

73+
namespace Oculus_3000MHz {
74+
const float ElevationBeamwidthDeg = 20.0;
75+
const float ElevationBeamwidthRad = 20.0*M_PI/180.0;
76+
77+
const float AzimuthBeamwidthDeg = 0.4;
78+
const float AzimuthBeamwidthRad = 0.4*M_PI/180.0;
79+
80+
// \todo These shouldn't be fixed, should read from Oculus.h
81+
// But I don't feel like dealing with their data structure
82+
const float MaxRange = 5; // meters
83+
};
84+
7185
struct FlagBits {
7286
// bit 0: 0 = interpret range as percent, 1 = interpret range as meters
7387
// bit 1: 0 = 8 bit data, 1 = 16 bit data

0 commit comments

Comments
 (0)