Add a raw memory position to log. name - Arbitrary name of the variable fetch_as - String representation of the type of the data the memory should be fetch as (i.e uint8_t, float, FP16) stored_as - String representation of the type the data is stored as
(self, name, fetch_as, stored_as, address)
| 183 | self.default_fetch_as.append(name) |
| 184 | |
| 185 | def add_memory(self, name, fetch_as, stored_as, address): |
| 186 | """Add a raw memory position to log. |
| 187 | |
| 188 | name - Arbitrary name of the variable |
| 189 | fetch_as - String representation of the type of the data the memory |
| 190 | should be fetch as (i.e uint8_t, float, FP16) |
| 191 | stored_as - String representation of the type the data is stored as |
| 192 | in the Crazyflie |
| 193 | address - The address of the data |
| 194 | """ |
| 195 | self.variables.append(LogVariable(name, fetch_as, LogVariable.MEM_TYPE, |
| 196 | stored_as, address)) |
| 197 | |
| 198 | def _set_added(self, added): |
| 199 | if added != self._added: |
nothing calls this directly
no test coverage detected