Skip to content

Commit 8e30497

Browse files
committed
Add new telemetry for accel and angvel
1 parent f110ce2 commit 8e30497

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

FprimeZephyrReference/Components/Imu/Imu.fpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ module Components {
1010
}
1111
telemetry MagneticField: MagneticField
1212

13+
struct Acceleration {
14+
x: F64
15+
y: F64
16+
z: F64
17+
}
18+
telemetry Acceleration: Acceleration
19+
20+
struct AngularVelocity {
21+
x: F64
22+
y: F64
23+
z: F64
24+
}
25+
telemetry AngularVelocity: AngularVelocity
26+
1327
###############################################################################
1428
# Standard AC Ports: Required for Channels, Events, Commands, and Parameters #
1529
###############################################################################

FprimeZephyrReference/ReferenceDeployment/Top/ReferenceDeploymentPackets.fppi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ telemetry packets ReferenceDeploymentPackets {
3535
}
3636

3737
packet Imu id 6 group 4 {
38+
ReferenceDeployment.imu.Acceleration
39+
ReferenceDeployment.imu.AngularVelocity
3840
ReferenceDeployment.imu.MagneticField
3941
}
4042

FprimeZephyrReference/ReferenceDeployment/Top/topology.fpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ module ReferenceDeployment {
100100
watchdog.gpioSet -> gpioDriver.gpioWrite
101101
}
102102

103-
# connections Imu {
104-
105-
# }
106-
107103
connections ReferenceDeployment {
108104

109105
}

FprimeZephyrReference/project/config/TlmPacketizerCfg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static const FwChanIdType TLMPACKETIZER_HASH_MOD_VALUE =
2424
999; // !< The modulo value of the hashing function.
2525
// Should be set to a little below the ID gaps to spread the entries around
2626

27-
static const FwChanIdType TLMPACKETIZER_HASH_BUCKETS = 40; // !< Buckets assignable to a hash slot.
27+
static const FwChanIdType TLMPACKETIZER_HASH_BUCKETS = 80; // !< Buckets assignable to a hash slot.
2828
// Buckets must be >= number of telemetry channels in system
2929
static const FwChanIdType TLMPACKETIZER_MAX_MISSING_TLM_CHECK =
3030
25; // !< Maximum number of missing telemetry channel checks

0 commit comments

Comments
 (0)