mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted attempt timing
This commit is contained in:
parent
3736f12712
commit
a9a2b63650
|
@ -237,7 +237,10 @@ class MeshRouter():
|
|||
|
||||
|
||||
# Calculate the transmission time with exponential increase
|
||||
transmission_time = timestamp + (2 ** attempt) * 10
|
||||
#transmission_time = timestamp + (2 ** attempt) * 10
|
||||
|
||||
# Calculate transmission times for attempts 0 to 10 with stronger S-curves in minutes
|
||||
transmission_time = (4.5 / (1 + np.exp(-1. * (attempt - 5)))) * 60
|
||||
|
||||
# check if it is time to transmit
|
||||
if time.time() >= transmission_time:
|
||||
|
|
|
@ -129,7 +129,7 @@ class TCIParam:
|
|||
|
||||
@dataclass
|
||||
class TNC:
|
||||
version = "0.10.0-alpha.1-mesh-exp11"
|
||||
version = "0.10.0-alpha.1-mesh-exp12"
|
||||
host: str = "0.0.0.0"
|
||||
port: int = 3000
|
||||
SOCKET_TIMEOUT: int = 1 # seconds
|
||||
|
|
Loading…
Reference in a new issue