Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
imu_utils.h
Go to the documentation of this file.
1
38
39
#pragma once
40
41
#include <stdbool.h>
42
#include <stdint.h>
43
#include "
linked_list.h
"
44
48
typedef
struct
49
{
50
int16_t
x
;
51
int16_t
y
;
52
int16_t
z
;
53
}
vec3d_t
;
54
55
bool
checkForShake
(
vec3d_t
* lastOrientation,
list_t
* shakeHistory,
bool
* isShook);
vec3d_t::z
int16_t z
The z component of the vector.
Definition
imu_utils.h:52
vec3d_t::x
int16_t x
The x component of the vector.
Definition
imu_utils.h:50
checkForShake
bool checkForShake(vec3d_t *lastOrientation, list_t *shakeHistory, bool *isShook)
Check if a shake was detected. All of the arguments for this function are both inputs and outputs.
Definition
imu_utils.c:26
vec3d_t::y
int16_t y
The y component of the vector.
Definition
imu_utils.h:51
vec3d_t
A general purpose 3D vector.
Definition
imu_utils.h:49
linked_list.h
list_t
A doubly linked list with pointers to the first and last nodes.
Definition
linked_list.h:87
main
utils
peripherals
imu_utils.h
Generated by
1.17.0