103 {
104
106
107 int num_leds =
args.num_leds;
108 float leds_per_turn =
args.leds_per_turn;
109 float width_cm =
args.width_cm;
110
111
112 const float circumference = leds_per_turn;
113 const float radius = circumference / (2.0 *
PI);
114 const float angle_per_led = 2.0 *
PI / leds_per_turn;
115 const float height_per_turn_cm = width_cm;
116 const float height_per_led =
117 height_per_turn_cm /
118 leds_per_turn * 1.3;
119
120
121
122 for (int i = 0; i < num_leds; i++) {
123 float angle = i * angle_per_led;
124 float r = radius + 10 + i * height_per_led;
125
126
127 float x = r * cos(angle);
128 float y = r * sin(angle);
129
130
132 }
133
135
136
139}
HeapVector< T, Allocator > vector