Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
DedeHai committed Feb 26, 2024
1 parent 6740cb6 commit d01a151
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8884,6 +8884,7 @@ uint16_t mode_particlebox(void)
scale = 50; // force is limited at lower angles
angle = (angle * (int16_t)SEGMENT.custom1) >> 8; // scale angle range according to slider (tilt strength)
angle -= 63; // make 'down' (or -90°) the zero position
//TODO: need to debug this, angle is not symmetrical around 'down'
// now calculate the force vectors
xgravity = ((int16_t)cos8((uint8_t)angle)) - 128; // gravity direction +/- 127
ygravity = ((int16_t)sin8((uint8_t)angle)) - 128;
Expand Down

0 comments on commit d01a151

Please sign in to comment.