Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Container 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
Giulia Facchi
Skyward Boardcore
Commits
8a20585d
Commit
8a20585d
authored
8 years ago
by
Federico
Browse files
Options
Downloads
Patches
Plain Diff
Fixed intermittent MAX21105 bug
parent
f79ad410
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shared/boards/AnakinBoard.cpp
+6
-3
6 additions, 3 deletions
src/shared/boards/AnakinBoard.cpp
src/shared/sensors/MAX21105.h
+1
-0
1 addition, 0 deletions
src/shared/sensors/MAX21105.h
with
7 additions
and
3 deletions
src/shared/boards/AnakinBoard.cpp
+
6
−
3
View file @
8a20585d
...
...
@@ -28,6 +28,8 @@ bool AnakinBoard::init()
spiMS580301BA07
::
init
();
mInited
=
true
;
mS_MAX21105
=
new
max21105_t
(
max21105_t
::
ACC_FS_16G
,
max21105_t
::
GYRO_FS_250
);
mS_MPU9250
=
new
mpu_t
(
mpu_t
::
ACC_FS_16G
,
mpu_t
::
GYRO_FS_250
);
mS_INEMO
=
new
inemo_t
(
inemo_t
::
ACC_FS_16G
,
...
...
@@ -35,15 +37,16 @@ bool AnakinBoard::init()
inemo_t
::
COMPASS_FS_2
);
mS_FXAS
=
new
fxas_t
(
fxas_t
::
DPS500
);
mS_LPS331AP
=
new
lps331ap_t
(
lps331ap_t
::
SS_25HZ
);
mS_MAX21105
=
new
max21105_t
(
max21105_t
::
ACC_FS_16G
,
max21105_t
::
GYRO_FS_250
);
mS_MS580
=
new
ms580_t
();
//The MAX21105 has to be initialized first as it is prone to listening
//to the initialization of the other sensors and switch by mistake to
//I2C mode
INIT_AND_CHECK
(
mS_MAX21105
);
INIT_AND_CHECK
(
mS_MPU9250
);
INIT_AND_CHECK
(
mS_INEMO
);
INIT_AND_CHECK
(
mS_FXAS
);
INIT_AND_CHECK
(
mS_LPS331AP
);
INIT_AND_CHECK
(
mS_MAX21105
);
INIT_AND_CHECK
(
mS_MS580
);
AddSensor
(
MPU9250_ACCEL
,
DATA_VEC3
,
mS_MPU9250
->
accelDataPtr
());
...
...
This diff is collapsed.
Click to expand it.
src/shared/sensors/MAX21105.h
+
1
−
0
View file @
8a20585d
...
...
@@ -66,6 +66,7 @@ public:
// Init this sensor
uint8_t
init_data
[][
2
]
=
{
{
MIF_CFG
,
0b00101001
},
// SPI 4 wire, I2C OFF (important!)
{
EXT_STATUS
,
0x00
},
// Choose the bank 0
{
SET_PWR
,
0x00
},
// Power down
...
...
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