Skip to content

Commit 7791485

Browse files
committed
Merge pull request ihmcrobotics#257 in ROB/ihmc-open-robotics-software from feature/export_boolean to develop
* commit '117d1b3f02c4f8da1f81912fb6f3efa6f046f796': Cleanup, generate MLInt64 for Boolean values by default instead of MLInt32 and converting later setup a method for exporting boolean values
2 parents cba803a + 117d1b3 commit 7791485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IHMCRobotDataVisualizer/src/us/ihmc/robotDataVisualizer/logger/YoVariableExporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ public void set(long entryAsLong)
208208
}
209209
else if (variable instanceof YoBoolean)
210210
{
211-
return new DataHolder<Integer>(offset, new MLInt32(name, dims))
211+
return new DataHolder<Long>(offset, new MLInt64(name, dims))
212212
{
213213

214214
@Override
215215
public void set(long entryAsLong)
216216
{
217-
set((Integer) (entryAsLong == 1L ? 1 : 0));
217+
set((Long) (entryAsLong == 0L ? 0L : 1L)); // Force true to equal 1L in all cases
218218
}
219219

220220
};

0 commit comments

Comments
 (0)