Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1
5#ifndef MODES_INCLUDE_IMU_UTILS_HPP
6#define MODES_INCLUDE_IMU_UTILS_HPP
7
10
12
14
17
18template<int temp = 0> struct ImuEventTy
19{
22
25 void reset(auto& ctx)
26 {
27 // reset filter
29
30 // reset particles
33 }
34
36 void update(auto& ctx)
37 {
38 //
40 }
41
45
46private:
47};
48
49} // namespace lampda::modes::imu
50
51#endif
Define a particle system ALL PARTICLE SYSTEM SHARE THE SAME PÄRTICLE SUBSET.
Definition: particle_system.hpp:27
void set_max_particle_count(const uint16_t _particleCount)
Call when you want to change the particle count of the simulation Can be called once when starting th...
Definition: particle_system.hpp:47
void reset()
reset system to zero count
Definition: particle_system.hpp:34
Interface for the physical components of the InertialMotionUnit.
User modes imu utilities.
Definition: utils.hpp:16
Reading get_filtered_reading(const bool resetFilter)
get the filtered IMU readings
Definition: imu.cpp:255
Define a particle system, with particle based logic.
Definition: utils.hpp:19
void reset(auto &ctx)
Reset the IMU events. Should be called before any use.
Definition: utils.hpp:25
modes::ParticleSystem particuleSystem
ALL IMU ANIMATIONS SHARE THIS PARTICLE SYSTEM. Spawn another if multiple systems should run in parral...
Definition: utils.hpp:44
physical::imu::Reading lastReading
last reading of the IMU
Definition: utils.hpp:21
void update(auto &ctx)
Call this once every tick inside the mode loop callback.
Definition: utils.hpp:36
IMU reading.
Definition: imu_wrapper.h:19
Define vectors and rotation matrices, and the possibility to rotate vectors.