Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
8a67ad2c
Commit
8a67ad2c
authored
1 year ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
imu: update docs
parent
9595b21d
No related branches found
No related tags found
No related merge requests found
Pipeline
#5985
failed
1 year ago
Stage: check
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/flow3r_bsp/flow3r_bsp_imu.h
+7
-3
7 additions, 3 deletions
components/flow3r_bsp/flow3r_bsp_imu.h
with
7 additions
and
3 deletions
components/flow3r_bsp/flow3r_bsp_imu.h
+
7
−
3
View file @
8a67ad2c
...
@@ -27,21 +27,25 @@ esp_err_t flow3r_bsp_imu_init(flow3r_bsp_imu_t *imu);
...
@@ -27,21 +27,25 @@ esp_err_t flow3r_bsp_imu_init(flow3r_bsp_imu_t *imu);
// Query the IMU for an accelerometer reading.
// Query the IMU for an accelerometer reading.
//
//
// This directly calls the I2C bus and
need to lock the bus for that
.
// This directly calls the I2C bus and
waits until the bus is available (max 1 second)
.
// Returns ESP_ERR_NOT_FOUND if there is no new reading available.
// Returns ESP_ERR_NOT_FOUND if there is no new reading available.
// Returns ESP_FAIL if the sensor could not be read (e.g. I2C unavailable).
// Return values in m/s**2.
// Return values in m/s**2.
esp_err_t
flow3r_bsp_imu_read_acc_mps
(
flow3r_bsp_imu_t
*
imu
,
float
*
x
,
float
*
y
,
esp_err_t
flow3r_bsp_imu_read_acc_mps
(
flow3r_bsp_imu_t
*
imu
,
float
*
x
,
float
*
y
,
float
*
z
);
float
*
z
);
// Query the IMU for a gyroscope reading.
// Query the IMU for a gyroscope reading.
//
//
// This directly calls the I2C bus and
need to lock the bus for that
.
// This directly calls the I2C bus and
waits until the bus is available (max 1 second)
.
// Returns ESP_ERR_NOT_FOUND if there is no new reading available.
// Returns ESP_ERR_NOT_FOUND if there is no new reading available.
// Returns ESP_FAIL if the sensor could not be read (e.g. I2C unavailable).
// Return values in deg/s.
// Return values in deg/s.
esp_err_t
flow3r_bsp_imu_read_gyro_dps
(
flow3r_bsp_imu_t
*
imu
,
float
*
x
,
esp_err_t
flow3r_bsp_imu_read_gyro_dps
(
flow3r_bsp_imu_t
*
imu
,
float
*
x
,
float
*
y
,
float
*
z
);
float
*
y
,
float
*
z
);
// Query the IMU for a pressure sensor reading.
// Query the IMU for a pressure sensor reading.
//
//
// Return cached data if no new reading is available.
// Return
s
cached data if no new reading is available.
// Presssure in Pa, temperature in deg C
// Presssure in Pa, temperature in deg C
esp_err_t
flow3r_bsp_imu_read_pressure
(
flow3r_bsp_imu_t
*
imu
,
float
*
pressure
,
esp_err_t
flow3r_bsp_imu_read_pressure
(
flow3r_bsp_imu_t
*
imu
,
float
*
pressure
,
float
*
temperature
);
float
*
temperature
);
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