mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 16:25:06 +03:00
types: Fix worst case initial magnet temp calculation
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
14c3ef0b7e
commit
6cb6c45083
1 changed files with 3 additions and 2 deletions
|
@ -254,7 +254,8 @@ impl Speaker {
|
||||||
|
|
||||||
// Worst case startup assumption
|
// Worst case startup assumption
|
||||||
s.t_coil = (new_speaker.t_limit - new_speaker.t_headroom) as f64;
|
s.t_coil = (new_speaker.t_limit - new_speaker.t_headroom) as f64;
|
||||||
s.t_magnet = s.t_coil
|
s.t_magnet = globals.t_ambient as f64
|
||||||
|
+ (s.t_coil - globals.t_ambient as f64)
|
||||||
* (new_speaker.tr_magnet / (new_speaker.tr_magnet + new_speaker.tr_coil)) as f64;
|
* (new_speaker.tr_magnet / (new_speaker.tr_magnet + new_speaker.tr_coil)) as f64;
|
||||||
|
|
||||||
// s.t_coil = globals.t_ambient as f64;
|
// s.t_coil = globals.t_ambient as f64;
|
||||||
|
|
Loading…
Reference in a new issue