mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
change vban max packet size, add a rds2 device to fm95 and others
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "bs412.h"
|
||||
|
||||
float dbr_to_deviation(float dbr) {
|
||||
inline float dbr_to_deviation(float dbr) {
|
||||
return 19000.0f * powf(10.0f, dbr / 10.0f);
|
||||
}
|
||||
|
||||
float deviation_to_dbr(float deviation) {
|
||||
inline float deviation_to_dbr(float deviation) {
|
||||
if(deviation == 0.0f) return -100.0f;
|
||||
return 10 * log10f(deviation / 19000.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user