add interface.
This commit is contained in:
parent
c0a3294a90
commit
fb313da3b0
@ -325,7 +325,11 @@ SensorScheduler::SensorScheduler() {
|
|||||||
UpdateCfg::ReadCfg(update_);
|
UpdateCfg::ReadCfg(update_);
|
||||||
}
|
}
|
||||||
|
|
||||||
long SensorScheduler::GetBaseTimestamp(int short_addr) {
|
void SensorScheduler::WaveError(int short_addr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
long SensorScheduler::GetBaseTimestamp(int short_addr) {
|
||||||
int id = 0;
|
int id = 0;
|
||||||
auto iter = short_addr_map_.find(short_addr);
|
auto iter = short_addr_map_.find(short_addr);
|
||||||
if (iter == short_addr_map_.end()) {
|
if (iter == short_addr_map_.end()) {
|
||||||
@ -334,7 +338,7 @@ long SensorScheduler::GetBaseTimestamp(int short_addr) {
|
|||||||
} else {
|
} else {
|
||||||
id = iter->second;
|
id = iter->second;
|
||||||
}
|
}
|
||||||
return start_timestamp_ + (id - 1) * eigen_value_send_duration_;
|
return start_timestamp_ + (id - 1) * eigen_value_send_duration_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SensorScheduler::GetAvailableId(int short_addr) {
|
int SensorScheduler::GetAvailableId(int short_addr) {
|
||||||
|
|||||||
@ -41,6 +41,7 @@ public:
|
|||||||
int StartSchedule(int short_addr, int &next_duration);
|
int StartSchedule(int short_addr, int &next_duration);
|
||||||
int GetNextDuration(int short_addr);
|
int GetNextDuration(int short_addr);
|
||||||
|
|
||||||
|
void WaveError(int short_addr);
|
||||||
long GetBaseTimestamp(int id);
|
long GetBaseTimestamp(int id);
|
||||||
long CalcNextTimestamp(int id, uint16_t short_addr);
|
long CalcNextTimestamp(int id, uint16_t short_addr);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user