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.0f
 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.1f
 low rebound [0 - 1] on walls
 
static constexpr float lampda::modes::speedDampening = 0.92f
 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
 
static constexpr float lampda::modes::ledsPerTurn = LampTy::ledPerTurns
 leds around the tube. Not an integer: rows are sheared
 
static constexpr float lampda::modes::rowHeight_mm = LampTy::ledStripWidth_mm
 height gained by the helix in one turn
 
static constexpr float lampda::modes::ledLength_mm = LampTy::ledSize_mm
 length of a led along the strip
 
static constexpr float lampda::modes::cylinderRadius_mm = LampTy::lampBodyRadius_mm
 radius of the cylinder, in millimeters ratio between the speed gained around the tube and the physical one
 
static constexpr float lampda::modes::aroundTubeRatio = angularSpeedGain * cylinderRadius_m * cylinderRadius_m * cylinderRadius_m
 

Detailed Description

Define a single particle for a particle system.