Commit Graph

16 Commits

Author SHA1 Message Date
Andrew Tridgell 2822f507c1 AP_RTC: added time and date APIs for lua
and fixed a bug with the ms time return
2023-12-11 18:00:38 +11:00
Peter Barker f9de53fd09 AP_RTC: remove code if AP_RTC_ENABLED is false 2023-10-11 19:17:27 +11:00
Peter Barker 68f74f9fc4 AP_RTC: add AP_RTC_config.h 2023-10-11 19:17:27 +11:00
Randy Mackay b5cbefc43a AP_RTC: get-date-and-time returns milliseconds 2023-07-18 21:02:02 +09:00
Randy Mackay e213e7e428 AP_RTC: add get_date_and_time_utc 2023-06-27 21:12:20 +10:00
Peter Barker 84e4a45dc3 AP_RTC: move AP_RTC::mktime to be ap_mktime
in preparation for AP_RTC_ENABLED
2023-06-27 11:25:11 +10:00
Patrick José Pereira 2ae7edc8b2 AP_RTC: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Andrew Tridgell 43af5893fb AP_RTC: added mktime(), used by AP_Filesystem and AP_GPS 2020-10-20 11:21:00 +11:00
Andrew Tridgell 9d63edbf37 AP_RTC: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Andrew Tridgell dc3e345a05 AP_RTC: added get_semaphore() 2020-01-16 20:36:54 +11:00
vierfuffzig cb054e714b AP_RTC: add local time support 2019-10-07 19:55:42 +11:00
Peter Barker 46c880089c AP_RTC: tighten types on get_system_clock_utc
None of these components should ever be negative - given its source is
only ever seconds-since-epoch.
2019-08-21 09:38:41 +10:00
murata 820f9bd260 AP_RTC: Delete unused variables
AP_RTC: Delete unused variables
2018-10-11 13:23:29 +11:00
Peter Barker 312ac7dc73 AP_RTC: return 0 from get_utc_usec if rtc not set 2018-06-15 08:01:22 +10:00
Peter Barker f83e65e04e AP_RTC: add parameter for source types we will set the system time from 2018-06-15 08:01:22 +10:00
Peter Barker ece7ff874c AP_RTC: a library to handle epoch-time 2018-06-15 08:01:22 +10:00