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