Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
particle.hpp File Reference

Define a single particle for a particle system. More...

Go to the source code of this file.

Classes

struct  lampda::modes::Particle
 Define a particle in 3D space. it has a position and speed. More...
 

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::modes
 Contains basic interface types to implement custom user modes.
 

Typedefs

using lampda::modes::LampTy = hardware::LampTy
 Define a particle in cylindrical space, and movement equations on the cylinder surface.
 

Variables

static constexpr float lampda::modes::cylinderRadius_m = LampTy::lampBodyRadius_mm / 1000.0
 radius of the cylinder, in meters
 
static constexpr float lampda::modes::angularSpeedGain = 50000
 this gain compensate the angular acceleration for better display
 
static constexpr float lampda::modes::linearSpeedGain = 1.0
 gain for the linear speeds
 
static constexpr float lampda::modes::reboundCoeff = 0.1
 low rebound [0 - 1] on walls
 
static constexpr float lampda::modes::speedDampening = 0.92
 low speed dampening [0-0.99] at every steps (viscosity)
 
static constexpr float lampda::modes::maxAngularSpeed_radS = 4 * c_TWO_PI
 max angular speed in radians/s
 
static constexpr float lampda::modes::maxVerticalSpeed_mmS = 50
 max vertical speed in mm/S
 

Detailed Description

Define a single particle for a particle system.