File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " tether-artnet-controller"
3- version = " 0.8.0 "
3+ version = " 0.8.1 "
44edition = " 2021"
55repository = " https://github.com/RandomStudio/tether-artnet-controller"
66homepage = " https://github.com/RandomStudio/tether-artnet-controller"
Original file line number Diff line number Diff line change 135135 ]
136136 },
137137 "pan" : {
138- "ControlValue" : 67
138+ "ControlValue" : 17028
139139 },
140140 "tilt" : {
141- "ControlValue" : 92
141+ "ControlValue" : 24253
142142 },
143143 "zoom" : {
144- "ControlValue" : 255
144+ "ControlValue" : 61406
145145 }
146146 },
147147 "Hero Right" : {
157157 ]
158158 },
159159 "pan" : {
160- "ControlValue" : 15
160+ "ControlValue" : 46958
161161 },
162162 "tilt" : {
163- "ControlValue" : 73
163+ "ControlValue" : 23221
164164 },
165165 "zoom" : {
166- "ControlValue" : 255
166+ "ControlValue" : 46958
167167 }
168168 },
169169 "Hex Left" : {
179179 ]
180180 },
181181 "Pan" : {
182- "ControlValue" : 0
182+ "ControlValue" : 13932
183183 },
184184 "Tilt" : {
185- "ControlValue" : 0
185+ "ControlValue" : 25801
186186 },
187187 "Zoom" : {
188- "ControlValue" : 0
188+ "ControlValue" : 65535
189189 }
190190 },
191191 "Hex Right" : {
192192 "Brightness" : {
193- "ControlValue" : 41000
193+ "ControlValue" : 65535
194194 },
195195 "Colour" : {
196196 "ColourValue" : [
201201 ]
202202 },
203203 "Pan" : {
204- "ControlValue" : 0
204+ "ControlValue" : 29413
205205 },
206206 "Tilt" : {
207- "ControlValue" : 0
207+ "ControlValue" : 26317
208208 },
209209 "Zoom" : {
210- "ControlValue" : 0
210+ "ControlValue" : 41797
211211 }
212212 }
213213 }
228228 ]
229229 },
230230 "pan" : {
231- "ControlValue" : 56500
231+ "ControlValue" : 0
232232 },
233233 "tilt" : {
234- "ControlValue" : 36000
234+ "ControlValue" : 32509
235235 },
236236 "zoom" : {
237- "ControlValue" : 54000
237+ "ControlValue" : 45410
238238 }
239239 },
240240 "Hero Right" : {
250250 ]
251251 },
252252 "pan" : {
253- "ControlValue" : 57500
253+ "ControlValue" : 0
254254 },
255255 "tilt" : {
256- "ControlValue" : 35500
256+ "ControlValue" : 30445
257257 },
258258 "zoom" : {
259- "ControlValue" : 41000
259+ "ControlValue" : 39217
260260 }
261261 },
262262 "Hex Left" : {
263263 "Brightness" : {
264- "ControlValue" : 35000
264+ "ControlValue" : 65535
265265 },
266266 "Colour" : {
267267 "ColourValue" : [
275275 "ControlValue" : 0
276276 },
277277 "Tilt" : {
278- "ControlValue" : 34500
278+ "ControlValue" : 34057
279279 },
280280 "Zoom" : {
281- "ControlValue" : 0
281+ "ControlValue" : 38701
282282 }
283283 },
284284 "Hex Right" : {
285285 "Brightness" : {
286- "ControlValue" : 41000
286+ "ControlValue" : 65535
287287 },
288288 "Colour" : {
289289 "ColourValue" : [
297297 "ControlValue" : 0
298298 },
299299 "Tilt" : {
300- "ControlValue" : 37000
300+ "ControlValue" : 31993
301301 },
302302 "Zoom" : {
303- "ControlValue" : 0
303+ "ControlValue" : 31477
304304 }
305305 }
306306 }
312312 },
313313 "artnetConfig" : {
314314 "Unicast" : [
315- " 127 .0.0.1 " ,
316- " 127 .0.0.1 "
315+ " 10 .0.0.105 " ,
316+ " 10 .0.0.99 "
317317 ]
318318 }
319319}
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ impl Model {
366366 let duration = Duration :: from_millis ( ms) ;
367367 let start_value =
368368 control_macro. current_value as f32 / u16:: MAX as f32 ;
369- let end_value = target_value as f32 / u16:: MAX as f32 ;
369+ let end_value = target_value / u16:: MAX as f32 ;
370370
371371 control_macro. animation = Some ( Animation :: new (
372372 duration,
@@ -500,9 +500,9 @@ impl Model {
500500 control_macro_in_fixture
501501 . current_value
502502 as f32
503- / 255.0 ,
503+ / u16 :: MAX as f32 ,
504504 * control_macro_in_scene as f32
505- / 255.0 ,
505+ / u16 :: MAX as f32 ,
506506 Box :: new ( SineInOut ) ,
507507 ) )
508508 } else {
You can’t perform that action at this time.
0 commit comments