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
9
11
13
15
18
19template<int temp = 0> struct ImuEventTy
20{
23
26 void reset(auto& ctx)
27 {
28 // reset filter
30
31 // reset particles
34 }
35
37 void update(auto& ctx)
38 {
39 //
41 }
42
46
47private:
48};
49
50} // namespace lampda::modes::imu
51
52#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:44
void reset()
reset system to zero count
Definition: particle_system.hpp:34
Interface for the physical components of the InertialMotionUnit.
bsp::imu::Reading get_filtered_reading(const bool resetFilter)
get the filtered IMU readings
Definition: imu.cpp:256
User modes imu utilities.
Definition: utils.hpp:17
Define a particle system, with particle based logic.
IMU reading.
Definition: imu_wrapper.h:19
Definition: utils.hpp:20
void reset(auto &ctx)
Reset the IMU events. Should be called before any use.
Definition: utils.hpp:26
modes::ParticleSystem particuleSystem
ALL IMU ANIMATIONS SHARE THIS PARTICLE SYSTEM. Spawn another if multiple systems should run in parral...
Definition: utils.hpp:45
bsp::imu::Reading lastReading
last reading of the IMU
Definition: utils.hpp:22
void update(auto &ctx)
Call this once every tick inside the mode loop callback.
Definition: utils.hpp:37
Define vectors and rotation matrices, and the possibility to rotate vectors.