OpenHPS/openhps-imu

View on GitHub
src/nodes/processing/VelocityProcessingNode.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function applyVelocity has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public applyVelocity(object: DataObject, frame: InOut): Promise<DataObject> {
        return new Promise((resolve) => {
            const lastPosition = object.getPosition();
            // Time since current calculation and previous velocity
            const deltaTime = TimeService.getUnit().convert(
Severity: Minor
Found in src/nodes/processing/VelocityProcessingNode.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status