Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MechaRaptor - Data Processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
tlambert
MechaRaptor - Data Processing
Commits
a23ab6a3
Verified
Commit
a23ab6a3
authored
2 years ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
fix(loadardu): column issue with new time
parent
03f2d8cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loadardu.m
+3
-3
3 additions, 3 deletions
loadardu.m
with
3 additions
and
3 deletions
loadardu.m
+
3
−
3
View file @
a23ab6a3
...
@@ -9,7 +9,7 @@ function arduData = loadardu(arduFile)
...
@@ -9,7 +9,7 @@ function arduData = loadardu(arduFile)
% -----
% -----
% Output format:
% Output format:
% The output array has one row per timestep. The columns are ordered as follows:
% The output array has one row per timestep. The columns are ordered as follows:
% angleFrontLeft, angleFrontRight, angleAftLeft, angleAftRight, powerFront, powerAft
%
time,
angleFrontLeft, angleFrontRight, angleAftLeft, angleAftRight, powerFront, powerAft
%
%
% Syntax:
% Syntax:
% arduData = loadardu(arduFile) load the Arduino data file, then clean it and return a cleaned
% arduData = loadardu(arduFile) load the Arduino data file, then clean it and return a cleaned
...
@@ -50,8 +50,8 @@ function arduData = loadardu(arduFile)
...
@@ -50,8 +50,8 @@ function arduData = loadardu(arduFile)
arduData
=
table2array
(
arduTable
);
arduData
=
table2array
(
arduTable
);
% Calculate power, remove tension and current
% Calculate power, remove tension and current
power
=
arduData
(:,
[
5
,
7
])
.*
arduData
(:,
[
6
,
8
]);
power
=
arduData
(:,
[
6
,
8
])
.*
arduData
(:,
[
7
,
9
]);
arduData
(:,
5
:
end
)
=
[];
arduData
(:,
6
:
end
)
=
[];
arduData
=
[
arduData
,
power
];
arduData
=
[
arduData
,
power
];
% Recalculate angles properly
% Recalculate angles properly
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment