Skip to content

Commit

Permalink
passing lint+tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfranczak committed Feb 28, 2024
1 parent 40a2145 commit 2d3e19c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/motion/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ export const encodeMotionConfiguration = (
return obstacleDetector;
})
);
if ('positionPollingFrequencyHz' in obj) {
if (obj.positionPollingFrequencyHz !== undefined) {
result.setPositionPollingFrequencyHz(obj.positionPollingFrequencyHz);
}
if ('obstaclePollingFrequencyHz' in obj) {
if (obj.obstaclePollingFrequencyHz !== undefined) {
result.setObstaclePollingFrequencyHz(obj.obstaclePollingFrequencyHz);
}
if ('planDeviationM' in obj) {
if (obj.planDeviationM !== undefined) {
result.setPlanDeviationM(obj.planDeviationM);
}
if ('linearMPerSec' in obj) {
if (obj.linearMPerSec !== undefined) {
result.setLinearMPerSec(obj.linearMPerSec);
}
if ('angularDegsPerSec' in obj) {
if (obj.angularDegsPerSec !== undefined) {
result.setAngularDegsPerSec(obj.angularDegsPerSec);
}

Expand Down

0 comments on commit 2d3e19c

Please sign in to comment.