Commit Graph

25 Commits

Author SHA1 Message Date
Peter Barker e23d82a9df AP_RTC: correct logger documentation 2024-11-22 10:18:31 +11:00
Peter Barker 0a00f637af AP_RTC: allow time to shift forward when disarmed 2024-11-21 09:19:38 +11:00
Andrew Tridgell 052ce823ba AP_RTC: use gmtime_r() instead of gmtime()
using gmtime_r makes gmtime thread safe
2024-02-21 12:09:48 +11:00
Peter Barker cf496a3c00 AP_RTC: remove pointless assignment of total_delay_ms
this is a stack variable, so assigning a new value to it in a return statement is pointless.

Pointed out by clang-scan-build
2024-01-21 09:53:04 +11:00
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
Andrew Tridgell e4a27943f5 AP_RTC: fixed ms value from AP_RTC::get_date_and_time_utc
this impacts the ViewPro mount driver
2023-12-09 11:12:56 +11:00
Peter Barker f9de53fd09 AP_RTC: remove code if AP_RTC_ENABLED is false 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 b6b73d674f AP_RTC: move implemenation of ap_mktime (NFC) 2023-06-27 11:25:11 +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
Jaaaky 56a860bef7 AP_RTC: fix oldest_acceptable_date to be in micros
Also update date to 2022-01-01 00:00 UTC
2022-02-10 09:22:30 +11:00
Peter Barker d6e5f8398d AP_RTC: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +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 3397ea24cc AP_RTC: use GCS_SEND_TEXT() 2020-04-29 07:36:55 +10: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
Michael du Breuil ba3cfbfb54 AP_RTC: Don't allow RTC times before 2019 2019-09-09 04:43:29 +10:00
Peter Barker 592c7acc4c AP_RTC: add clarifying comment on get_time_utc 2019-08-21 09:38:41 +10: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