Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mobilebot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
gxiang
Mobilebot
Commits
04b39cd3
Commit
04b39cd3
authored
3 years ago
by
gxiang
Browse files
Options
Downloads
Patches
Plain Diff
calibrate odometry
parent
51a3cc73
Branches
master
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/mb_defs.h
+1
-1
1 addition, 1 deletion
common/mb_defs.h
common/mb_odometry.c
+1
-1
1 addition, 1 deletion
common/mb_odometry.c
with
2 additions
and
2 deletions
common/mb_defs.h
+
1
−
1
View file @
04b39cd3
...
...
@@ -27,7 +27,7 @@
#define GEAR_RATIO 78.0 // gear ratio of motor
#define ENCODER_RES 20.0 // encoder counts per motor shaft revolution
#define WHEEL_DIAMETER 0.084 // diameter of wheel in meters
#define WHEEL_BASE 0.1
59
// wheel separation distance in meters
#define WHEEL_BASE 0.1
61
// wheel separation distance in meters
#define MAX_FWD_VEL 0.8 // maximum forwad speed (m/s)
#define MAX_TURN_VEL 2.5 // maximum turning speed (rad/s)
...
...
This diff is collapsed.
Click to expand it.
common/mb_odometry.c
+
1
−
1
View file @
04b39cd3
...
...
@@ -39,7 +39,7 @@ void mb_update_odometry(mb_odometry_t* mb_odometry, mb_state_t* mb_state){
//del_thresh Needs to be tuned
//IF DON'T WANT GYRO, SET IT AS F!
float
enc2meters
=
(
WHEEL_DIAMETER
*
PI
)
/
(
GEAR_RATIO
*
ENCODER_RES
);
float
del_thresh
=
0
.
1
;
//0.125/DT;
float
del_thresh
=
100
;
//0.125/DT;
boolean
Gyro
=
T
;
float
del_left
=
mb_state
->
left_encoder_delta
*
1
.
0
*
enc2meters
;
...
...
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