Struct nebula::drivers::hesai_packet::DateTime
template <int YearOffset>
ClassList > nebula > drivers > hesai_packet > DateTime
DateTime struct for Hesai packets.More...
#include <hesai_packet.hpp>
Public Attributes
Type | Name |
---|---|
uint8_t | day |
uint8_t | hour |
uint8_t | minute |
uint8_t | month |
uint8_t | second |
uint8_t | year Year - YearOffset (e.g. for YearOffset=1900 value 100 corresponds to year 2000) |
Public Functions
Type | Name |
---|---|
uint64_t | get_seconds () const Get seconds since epoch. |
Detailed Description
Template parameters:
YearOffset
like std::tm, the Hesai format has a year offset that is applied to the raw year value. For most protocol versions it is 1900 (like std::tm), for some it is 2000.
Public Attributes Documentation
variable day
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::day;
variable hour
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::hour;
variable minute
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::minute;
variable month
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::month;
variable second
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::second;
variable year
uint8_t nebula::drivers::hesai_packet::DateTime< YearOffset >::year;
Public Functions Documentation
function get_seconds
Get seconds since epoch.
inline uint64_t nebula::drivers::hesai_packet::DateTime::get_seconds () const
Returns:
Whole seconds since epoch
The documentation for this class was generated from the following file nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp