Skip to content

Commit

Permalink
Add values to map of ESenseConfig when parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cryeprecision committed Jan 2, 2023
1 parent adba2fc commit b7d0e74
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ public void onSensorConfigRead(ESenseConfig config) {
if (eventSink != null) {
HashMap<String,Object> map = new HashMap<>();
map.put("type", "SensorConfigRead");
// right now this event is empty, i.e. we do not serialize and send the config object across

map.put("accLowPass", config.getAccLPF().name());
map.put("accRange", config.getAccRange().name());

map.put("gyroLowPass", config.getGyroLPF().name());
map.put("gyroRange", config.getGyroRange().name());

eventSink.success(map);
}
}
Expand Down

0 comments on commit b7d0e74

Please sign in to comment.