Commit c8a58c5 1 parent 6dc3cbb commit c8a58c5 Copy full SHA for c8a58c5
File tree 9 files changed +500
-0
lines changed
9 files changed +500
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ px4_add_board(
52
52
px4io
53
53
rc_input
54
54
roboclaw
55
+ rpm
55
56
safety_button
56
57
tap_esc
57
58
telemetry # all available telemetry drivers
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ px4_add_board(
51
51
px4io
52
52
rc_input
53
53
roboclaw
54
+ rpm
54
55
safety_button
55
56
tap_esc
56
57
telemetry # all available telemetry drivers
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ set(msg_files
97
97
power_button_state.msg
98
98
power_monitor.msg
99
99
pwm_input.msg
100
+ rpm.msg
100
101
qshell_req.msg
101
102
qshell_retval.msg
102
103
radio_status.msg
Original file line number Diff line number Diff line change
1
+ uint64 timestamp # time since system start (microseconds)
2
+
3
+ float32 indicated_frequency_hz # indicated rotor Frequency in Hz
4
+ float32 estimated_accurancy_hz # estimated accurancy in Hz
5
+ float32 indicated_frequency_rpm # indicated rotor Frequency in Revolution per minute
6
+ float32 estimated_accurancy_rpm # estimated accurancy in Revolution per minute
7
+
Original file line number Diff line number Diff line change @@ -281,6 +281,8 @@ rtps:
281
281
id : 125
282
282
- msg : logger_status
283
283
id : 126
284
+ - msg : rpm
285
+ id : 127
284
286
# ######### multi topics: begin ##########
285
287
- msg : actuator_controls_0
286
288
id : 150
Original file line number Diff line number Diff line change
1
+ add_subdirectory (pcf8583)
2
+
Original file line number Diff line number Diff line change
1
+ px4_add_module(
2
+
3
+ MODULE drivers__pcf8583
4
+ MAIN pcf8583
5
+ COMPILE_FLAGS
6
+ SRCS
7
+ pcf8583.cpp
8
+ DEPENDS
9
+ drivers__device
10
+ )
Original file line number Diff line number Diff line change
1
+ /**
2
+ * PCF8583 rotorfreq (i2c) pool interval
3
+ *
4
+ * @reboot_required true
5
+ * @group Sensors
6
+ * @unit us
7
+ */
8
+ PARAM_DEFINE_INT32 (PCF8583_POOL , 1000000 );
9
+
10
+ /**
11
+ * PCF8583 rotorfreq (i2c) i2c address
12
+ *
13
+ * @reboot_required true
14
+ * @group Sensors
15
+ * @value 80 0x50
16
+ * @value 81 0x51
17
+ */
18
+ PARAM_DEFINE_INT32 (PCF8583_ADDR , 80 );
19
+
20
+ /**
21
+ * PCF8583 rotorfreq (i2c) counter reset value
22
+ *
23
+ * Internal device counter is reset to 0 when overun this value,
24
+ * counter is able to store upto 6 digits
25
+ * reset of counter takes some time - measurement with reset has worse accurancy
26
+ *
27
+ * @reboot_required true
28
+ * @group Sensors
29
+ * @value 0 - reset avter every measurement
30
+ */
31
+ PARAM_DEFINE_INT32 (PCF8583_RESET , 500000 );
32
+
33
+ /**
34
+ * PCF8583 rotorfreq (i2c) magnet count
35
+ *
36
+ * Nmumber of signals per rotation of rotor
37
+ *
38
+ * @reboot_required true
39
+ * @min 1
40
+ */
41
+ PARAM_DEFINE_INT32 (PCF8583_MAGNET , 2 );
You can’t perform that action at this time.
0 commit comments