76 {
77
79
80 int num_leds =
args.num_leds;
81 float leds_per_turn =
args.leds_per_turn;
82 float width_cm =
args.width_cm;
83
84 const float circumference = leds_per_turn;
85 const float radius = circumference / (2.0 *
PI);
86 const float angle_per_led = 2.0 *
PI / leds_per_turn;
87 const float height_per_turn_cm = width_cm;
88 const float height_per_led = height_per_turn_cm / leds_per_turn *
89 1.3;
90
91 for (int i = 0; i < num_leds; i++) {
92 float angle = i * angle_per_led;
93 float r = radius + 10 + i * height_per_led;
94
95
96 float x = r * cos(angle);
97 float y = r * sin(angle);
98
99
101 }
102
104
105
108}
HeapVector< T, Allocator > vector