+++
This commit is contained in:
@ -68,7 +68,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
@ -128,7 +128,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
@ -196,7 +196,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
@ -260,7 +260,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
@ -331,7 +331,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
@ -400,7 +400,7 @@ namespace DroneSimulator
|
||||
|
||||
uint freq = 1000 / Freq;
|
||||
|
||||
if (timer + freq < time)
|
||||
if (timer + freq <= time)
|
||||
{
|
||||
result = value;
|
||||
timer = time;
|
||||
|
Reference in New Issue
Block a user