|
3 | 3 | <CDFInfo> |
4 | 4 | <Version>3</Version> |
5 | 5 | <CreationDate>2023-04-18T13:32:37Z</CreationDate> |
6 | | - <UpdatedDate>2025-03-17T13:48:17Z</UpdatedDate> |
| 6 | + <UpdatedDate>2026-03-22T00:00:00Z</UpdatedDate> |
7 | 7 | </CDFInfo> |
8 | 8 | <Description> |
9 | | - <ShortDescription>Accelometer and Gyroscope</ShortDescription> |
10 | | - <LongDescription>Accelometer and Gyroscope</LongDescription> |
| 9 | + <ShortDescription>Accelerometer and Gyroscope</ShortDescription> |
| 10 | + <LongDescription>Combined IMU function block providing accelerometer and gyroscope readings. Enable/disable control the hardware sensor. read_accel and read_gyro trigger independent reads; either may be used without the other. On platforms that do not provide a gyroscope (e.g. Sfera Labs Exo Sense Pi) read_gyro never fires its done event.</LongDescription> |
11 | 11 | <UserName/> |
12 | 12 | <Menu> |
13 | 13 | Peripherals |
14 | | - <Menu>Accelometer and Gyroscope</Menu> |
| 14 | + <Menu>Accelerometer and Gyroscope</Menu> |
15 | 15 | </Menu> |
16 | 16 | </Description> |
17 | 17 | <Block> |
18 | 18 | <Type>IO</Type> |
| 19 | + <Width>75</Width> |
| 20 | + <Height>145</Height> |
| 21 | + <Text>AccGyro</Text> |
| 22 | + <TextX>10</TextX> |
| 23 | + <TextY>5</TextY> |
| 24 | + <TextScale>1.25</TextScale> |
| 25 | + <TextVertical>0</TextVertical> |
| 26 | + <LocationX>0</LocationX> |
| 27 | + <LocationY>-15</LocationY> |
19 | 28 | </Block> |
20 | 29 | <FBID> |
21 | 30 | <ERT1_ID>1</ERT1_ID> |
22 | 31 | <Class>accel_gyro</Class> |
23 | 32 | </FBID> |
24 | 33 | <Hashes> |
25 | 34 | <NameHash_CRC16>0xF2AA</NameHash_CRC16> |
26 | | - <FbApiDescriptorHash_CRC32>bad9e7af</FbApiDescriptorHash_CRC32> |
| 35 | + <FbApiDescriptorHash_CRC32>00000000</FbApiDescriptorHash_CRC32> |
27 | 36 | <FbApiDescriptorHash/> |
28 | 37 | </Hashes> |
29 | 38 | <Parameters/> |
30 | 39 | <Functions> |
31 | 40 | <Function> |
32 | | - <name>EnableFunc</name> |
| 41 | + <name>enable</name> |
33 | 42 | <ID> |
34 | 43 | <ERT1_ID>1</ERT1_ID> |
35 | 44 | </ID> |
36 | 45 | </Function> |
37 | 46 | <Function> |
38 | | - <name>DisableFunc</name> |
| 47 | + <name>disable</name> |
39 | 48 | <ID> |
40 | 49 | <ERT1_ID>2</ERT1_ID> |
41 | 50 | </ID> |
42 | 51 | </Function> |
43 | 52 | <Function> |
44 | | - <name>ReadAccelFunc</name> |
| 53 | + <name>read_accel</name> |
45 | 54 | <ID> |
46 | 55 | <ERT1_ID>3</ERT1_ID> |
47 | 56 | </ID> |
48 | 57 | </Function> |
49 | 58 | <Function> |
50 | | - <name>ReadGyroFunc</name> |
| 59 | + <name>read_gyro</name> |
51 | 60 | <ID> |
52 | 61 | <ERT1_ID>4</ERT1_ID> |
53 | 62 | </ID> |
|
66 | 75 | </Function> |
67 | 76 | </Port> |
68 | 77 | <Port> |
69 | | - <Description>disbale</Description> |
| 78 | + <Description>disable</Description> |
70 | 79 | <PortType>StartPort</PortType> |
71 | 80 | <XCoordinate>0</XCoordinate> |
72 | 81 | <YCoordinate>22</YCoordinate> |
73 | | - <CName>disbale</CName> |
| 82 | + <CName>disable</CName> |
74 | 83 | <Function argument="0"> |
75 | 84 | <Function_ERT1_ID>2</Function_ERT1_ID> |
76 | 85 | <AtomicFlag>0</AtomicFlag> |
|
79 | 88 | <Port> |
80 | 89 | <Description>--</Description> |
81 | 90 | <PortType>FinishPort</PortType> |
82 | | - <XCoordinate>75</XCoordinate> |
| 91 | + <XCoordinate>70</XCoordinate> |
83 | 92 | <YCoordinate>12</YCoordinate> |
84 | 93 | <Wcet>0</Wcet> |
85 | 94 | <CName>enabled</CName> |
|
90 | 99 | <Port> |
91 | 100 | <Description>--</Description> |
92 | 101 | <PortType>FinishPort</PortType> |
93 | | - <XCoordinate>75</XCoordinate> |
| 102 | + <XCoordinate>70</XCoordinate> |
94 | 103 | <YCoordinate>22</YCoordinate> |
95 | 104 | <Wcet>0</Wcet> |
96 | 105 | <CName>disabled</CName> |
|
102 | 111 | <DataType>I</DataType> |
103 | 112 | <Description>err id</Description> |
104 | 113 | <PortType>OutputPort</PortType> |
105 | | - <XCoordinate>75</XCoordinate> |
| 114 | + <XCoordinate>70</XCoordinate> |
106 | 115 | <YCoordinate>32</YCoordinate> |
107 | 116 | <CName>error_id</CName> |
108 | 117 | <Function argument="1"> |
|
126 | 135 | <Port> |
127 | 136 | <Description>--</Description> |
128 | 137 | <PortType>FinishPort</PortType> |
129 | | - <XCoordinate>75</XCoordinate> |
130 | | - <YCoordinate>45</YCoordinate> |
| 138 | + <XCoordinate>70</XCoordinate> |
| 139 | + <YCoordinate>47</YCoordinate> |
131 | 140 | <Wcet>0</Wcet> |
132 | 141 | <CName>accel_done</CName> |
133 | 142 | <Function argument="1"> |
|
138 | 147 | <DataType>F</DataType> |
139 | 148 | <Description>Ax</Description> |
140 | 149 | <PortType>OutputPort</PortType> |
141 | | - <XCoordinate>75</XCoordinate> |
142 | | - <YCoordinate>55</YCoordinate> |
| 150 | + <XCoordinate>70</XCoordinate> |
| 151 | + <YCoordinate>57</YCoordinate> |
143 | 152 | <CName>Ax</CName> |
144 | 153 | <Function argument="1"> |
145 | 154 | <Function_ERT1_ID>3</Function_ERT1_ID> |
|
149 | 158 | <DataType>F</DataType> |
150 | 159 | <Description>Ay</Description> |
151 | 160 | <PortType>OutputPort</PortType> |
152 | | - <XCoordinate>75</XCoordinate> |
153 | | - <YCoordinate>65</YCoordinate> |
| 161 | + <XCoordinate>70</XCoordinate> |
| 162 | + <YCoordinate>67</YCoordinate> |
154 | 163 | <CName>Ay</CName> |
155 | 164 | <Function argument="2"> |
156 | 165 | <Function_ERT1_ID>3</Function_ERT1_ID> |
|
160 | 169 | <DataType>F</DataType> |
161 | 170 | <Description>Az</Description> |
162 | 171 | <PortType>OutputPort</PortType> |
163 | | - <XCoordinate>75</XCoordinate> |
164 | | - <YCoordinate>75</YCoordinate> |
| 172 | + <XCoordinate>70</XCoordinate> |
| 173 | + <YCoordinate>77</YCoordinate> |
165 | 174 | <CName>Az</CName> |
166 | 175 | <Function argument="3"> |
167 | 176 | <Function_ERT1_ID>3</Function_ERT1_ID> |
|
171 | 180 | <Description>gyro</Description> |
172 | 181 | <PortType>StartPort</PortType> |
173 | 182 | <XCoordinate>0</XCoordinate> |
174 | | - <YCoordinate>87</YCoordinate> |
| 183 | + <YCoordinate>92</YCoordinate> |
175 | 184 | <CName>read_gyro</CName> |
176 | 185 | <Function argument="0"> |
177 | 186 | <Function_ERT1_ID>4</Function_ERT1_ID> |
|
181 | 190 | <Port> |
182 | 191 | <Description>--</Description> |
183 | 192 | <PortType>FinishPort</PortType> |
184 | | - <XCoordinate>75</XCoordinate> |
185 | | - <YCoordinate>87</YCoordinate> |
| 193 | + <XCoordinate>70</XCoordinate> |
| 194 | + <YCoordinate>92</YCoordinate> |
186 | 195 | <Wcet>0</Wcet> |
187 | 196 | <CName>gyro_done</CName> |
188 | 197 | <Function argument="1"> |
|
193 | 202 | <DataType>F</DataType> |
194 | 203 | <Description>Gx</Description> |
195 | 204 | <PortType>OutputPort</PortType> |
196 | | - <XCoordinate>75</XCoordinate> |
197 | | - <YCoordinate>97</YCoordinate> |
| 205 | + <XCoordinate>70</XCoordinate> |
| 206 | + <YCoordinate>102</YCoordinate> |
198 | 207 | <CName>Gx</CName> |
199 | 208 | <Function argument="1"> |
200 | 209 | <Function_ERT1_ID>4</Function_ERT1_ID> |
|
204 | 213 | <DataType>F</DataType> |
205 | 214 | <Description>Gy</Description> |
206 | 215 | <PortType>OutputPort</PortType> |
207 | | - <XCoordinate>75</XCoordinate> |
| 216 | + <XCoordinate>70</XCoordinate> |
208 | 217 | <YCoordinate>107</YCoordinate> |
209 | 218 | <CName>Gy</CName> |
210 | 219 | <Function argument="2"> |
|
215 | 224 | <DataType>F</DataType> |
216 | 225 | <Description>Gz</Description> |
217 | 226 | <PortType>OutputPort</PortType> |
218 | | - <XCoordinate>75</XCoordinate> |
| 227 | + <XCoordinate>70</XCoordinate> |
219 | 228 | <YCoordinate>117</YCoordinate> |
220 | 229 | <CName>Gz</CName> |
221 | 230 | <Function argument="3"> |
|
0 commit comments