feat: cam and slience detect sleep
This commit is contained in:
@ -143,7 +143,9 @@ private:
|
||||
bool fatigue_reminder_triggered_in_listening_ = false;
|
||||
int fatigue_silence_seconds_ = 0;
|
||||
int fatigue_idle_seconds_ = 0;
|
||||
int fatigue_camera_closed_samples_ = 0;
|
||||
int64_t last_fatigue_reminder_time_us_ = 0;
|
||||
int64_t last_fatigue_camera_check_time_us_ = 0;
|
||||
int clock_ticks_ = 0;
|
||||
TaskHandle_t activation_task_handle_ = nullptr;
|
||||
|
||||
@ -160,6 +162,7 @@ private:
|
||||
void ContinueOpenAudioChannel(ListeningMode mode);
|
||||
void ContinueWakeWordInvoke(const std::string& wake_word);
|
||||
void CheckFatigueReminder();
|
||||
bool CheckCameraDrowsiness();
|
||||
void TriggerFatigueReminder();
|
||||
|
||||
// Activation task (runs in background)
|
||||
|
||||
Reference in New Issue
Block a user