Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plotter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
There was an error fetching the commit references. Please try again later.
Show more breadcrumbs
Marek Bečka
Plotter
Commits
1b2a9724
Commit
1b2a9724
authored
3 years ago
by
Marek Bečka
Browse files
Options
Downloads
Patches
Plain Diff
nefunkcni verze.
parent
9986c66f
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
matlab/drivers/src/motor_can.c
+5
-4
5 additions, 4 deletions
matlab/drivers/src/motor_can.c
with
5 additions
and
4 deletions
matlab/drivers/src/motor_can.c
+
5
−
4
View file @
1b2a9724
/*********** Includes *************/
#define PRINTDEBUG
//
#define PRINTDEBUG
#include
"motor_can.h"
...
...
@@ -154,7 +154,7 @@ int can_setup(int id){
DEBUG
(
"End of the setup."
);
DEBUG
(
"Test of the pack_motor_reference"
);
/*
DEBUG("Test of the pack_motor_reference");
float a = 0;
uint8_t prub[8];
...
...
@@ -164,7 +164,7 @@ int can_setup(int id){
DEBUG_MESS(&prub);
DEBUG
(
"End of test of the pack_motor_reference"
);
DEBUG("End of test of the pack_motor_reference");
*/
return
0
;
}
...
...
@@ -197,8 +197,9 @@ int input_reference(float position, float velocity, float Kp, float Kd, float fe
fprintf(fp, "%d ", feed_forward_current);
fprintf(fp, "\n\n");
*/
send_can_frame(message);
*/
pack_motor_reference
(
message
,
position
,
velocity
,
Kp
,
Kd
,
feed_forward_current
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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