MCU
Loading...
Searching...
No Matches
lib
mock_interfaces
VectornavInterface.h
Go to the documentation of this file.
1
#ifndef VECTORNAVINTERFACE
2
#define VECTORNAVINTERFACE
3
#include "
SharedDataTypes.h
"
4
5
6
template
<
typename
message_queue>
7
class
VNInterface
8
{
9
private
:
10
/* Watchdog last kicked time */
11
message_queue *
msg_queue_
;
12
uint32_t
can_id_
;
13
VectornavData_s
vn_data
;
14
15
public
:
16
VNInterface
(message_queue *msg_output_queue) {
17
msg_queue_
= msg_output_queue;
18
};
19
/* Kick watchdog */
20
21
// getters
22
VectornavData_s
get_vn_struct
();
23
24
uint32_t
get_id
() {
return
can_id_
;};
25
};
26
#endif
/* __WATCHDOG_INTERFACE_H__ */
SharedDataTypes.h
VNInterface
Definition:
VectornavInterface.h:9
VNInterface::vn_data
VectornavData_s vn_data
Definition:
VectornavInterface.h:14
VNInterface::VNInterface
VNInterface(message_queue *msg_output_queue)
Definition:
VectornavInterface.h:16
VNInterface::get_id
uint32_t get_id()
Definition:
VectornavInterface.h:24
VNInterface::get_vn_struct
VectornavData_s get_vn_struct()
VNInterface::can_id_
uint32_t can_id_
Definition:
VectornavInterface.h:13
VNInterface::msg_queue_
message_queue * msg_queue_
Definition:
VectornavInterface.h:12
VectornavData_s
Definition:
SharedDataTypes.h:77
Generated by
1.9.5