コード例 #1
0
ファイル: notifier.py プロジェクト: warrenlp/robotpy-wpilib
    def _updateAlarm(self, triggerTime=None) -> None:
        """
        Update the alarm hardware to reflect the next alarm.

        :param triggerTime: the time at which the next alarm will be triggered
        """
        if triggerTime is None:
            triggerTime = int(self._expirationTime * 1e6)
        handle = self._notifier
        if handle:
            hal.updateNotifierAlarm(handle, triggerTime)
コード例 #2
0
ファイル: notifier.py プロジェクト: robotpy/robotpy-wpilib
    def _updateAlarm(self, triggerTime=None) -> None:
        """
        Update the alarm hardware to reflect the next alarm.

        :param triggerTime: the time at which the next alarm will be triggered
        """
        if triggerTime is None:
            triggerTime = int(self._expirationTime * 1e6)
        handle = self._notifier
        if handle:
            hal.updateNotifierAlarm(handle, triggerTime)
コード例 #3
0
 def _update_alarm(self) -> None:
     hal.updateNotifierAlarm(self._notifier, self._expiry_time)
コード例 #4
0
 def _updateAlarm(self) -> None:
     """Update the alarm hardware to reflect the next alarm."""
     hal.updateNotifierAlarm(self._notifier, int(self._expirationTime * 1e6))
コード例 #5
0
 def _update_alarm(self) -> None:
     hal.updateNotifierAlarm(self._notifier, self._expiry_time)
コード例 #6
0
ファイル: AsyncRobot.py プロジェクト: 369highvoltage/jessica
 def _updateAlarm(self) -> None:
     hal.updateNotifierAlarm(self._notifier,
                             int(self._expirationTime * 1e6))