Skip to content

Commit de415d3

Browse files
committed
Make input ranges symmetric
Aligns with LFP Viewer conventions for improved visualization consistency
1 parent c4dc63d commit de415d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Source/Devices/Bno055.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Bno055::Bno055 (std::string name, std::string hubName, const oni_dev_idx_t devic
3131

3232
std::string port = getPortName (deviceIdx);
3333

34-
const ContinuousChannel::InputRange eulerYawRange { 0.0f, 360.0f };
34+
const ContinuousChannel::InputRange eulerYawRange { -360.0f, 360.0f };
3535
const ContinuousChannel::InputRange eulerRollRange { -180.0f, 180.0f };
3636
const ContinuousChannel::InputRange eulerPitchRange { -90.0f, 90.0f };
3737

@@ -105,7 +105,7 @@ Bno055::Bno055 (std::string name, std::string hubName, const oni_dev_idx_t devic
105105
{ gravityRange });
106106
streamInfos.add (gravityStream);
107107

108-
const ContinuousChannel::InputRange temperatureRange { 0.0f, 100.0f };
108+
const ContinuousChannel::InputRange temperatureRange { -100.0f, 100.0f };
109109

110110
StreamInfo temperatureStream = StreamInfo (
111111
OnixDevice::createStreamName ({ port, getHubName(), getName(), "Temperature" }),
@@ -123,7 +123,7 @@ Bno055::Bno055 (std::string name, std::string hubName, const oni_dev_idx_t devic
123123
{ temperatureRange });
124124
streamInfos.add (temperatureStream);
125125

126-
const ContinuousChannel::InputRange calibrationRange { 0.0f, 3.0f };
126+
const ContinuousChannel::InputRange calibrationRange { -3.0f, 3.0f };
127127

128128
StreamInfo calibrationStatusStream = StreamInfo (
129129
OnixDevice::createStreamName ({ port, getHubName(), getName(), "Calibration" }),

Source/Devices/PolledBno055.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PolledBno055::PolledBno055 (std::string name, std::string hubName, const oni_dev
3131
{
3232
auto streamIdentifier = getStreamIdentifier();
3333

34-
const ContinuousChannel::InputRange eulerYawRange { 0.0f, 360.0f };
34+
const ContinuousChannel::InputRange eulerYawRange { -360.0f, 360.0f };
3535
const ContinuousChannel::InputRange eulerRollRange { -180.0f, 180.0f };
3636
const ContinuousChannel::InputRange eulerPitchRange { -90.0f, 90.0f };
3737

@@ -106,7 +106,7 @@ PolledBno055::PolledBno055 (std::string name, std::string hubName, const oni_dev
106106
{ gravityRange });
107107
streamInfos.add (gravityStream);
108108

109-
const ContinuousChannel::InputRange temperatureRange { 0.0f, 100.0f };
109+
const ContinuousChannel::InputRange temperatureRange { -100.0f, 100.0f };
110110

111111
StreamInfo temperatureStream = StreamInfo (
112112
OnixDevice::createStreamName ({ port, getHubName(), getName(), "Temperature" }),
@@ -124,7 +124,7 @@ PolledBno055::PolledBno055 (std::string name, std::string hubName, const oni_dev
124124
{ temperatureRange });
125125
streamInfos.add (temperatureStream);
126126

127-
const ContinuousChannel::InputRange calibrationRange { 0.0f, 3.0f };
127+
const ContinuousChannel::InputRange calibrationRange { -3.0f, 3.0f };
128128

129129
StreamInfo calibrationStatusStream = StreamInfo (
130130
OnixDevice::createStreamName ({ port, getHubName(), getName(), "Calibration" }),

0 commit comments

Comments
 (0)