Merge branch 'dg101_feature_new_process' of http://192.168.0.10:3000/pandx/WLG into dg101_feature_new_process
This commit is contained in:
commit
a453aebbd1
@ -293,6 +293,8 @@ int SensorScheduler::GetNextDuration(int short_addr, int &next_task_id) {
|
|||||||
id = iter->second;
|
id = iter->second;
|
||||||
}
|
}
|
||||||
long current_ts = GetLocalTs();
|
long current_ts = GetLocalTs();
|
||||||
|
nth_wave_start_slice_ = (current_ts_ - start_timestamp_) / wave_form_send_interval_;
|
||||||
|
current_wave_start_ts_ = nth_wave_start_slice_ * wave_form_send_interval_ + start_timestamp_;
|
||||||
long next_ts = CalcNextTimestamp(id, short_addr, next_task_id);
|
long next_ts = CalcNextTimestamp(id, short_addr, next_task_id);
|
||||||
int duration = next_ts - current_ts;
|
int duration = next_ts - current_ts;
|
||||||
if (duration < 0 || duration > eigen_value_send_interval_) {
|
if (duration < 0 || duration > eigen_value_send_interval_) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user