Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging RPM #448

Closed
Omikaa opened this issue Apr 17, 2024 · 1 comment
Closed

Logging RPM #448

Omikaa opened this issue Apr 17, 2024 · 1 comment

Comments

@Omikaa
Copy link

Omikaa commented Apr 17, 2024

Can I use crazyflie-lib-python to log rpm of a nano-drone? I have seen the code of https://github.com/bitcraze/crazyflie-firmware/blob/master/src/deck/drivers/src/rpm.c#L323. And it says 'rpm.c - Deck that measure the motor RPM using QRD1114 IR reflector-sensor.'. So I wonder if I can log rpm like logging stateEstimate.x.
# The definition of the logconfig can be made before connecting self._lg_stab = LogConfig(name='Stabilizer', period_in_ms=100) self._lg_stab.add_variable('stateEstimate.x', 'float') self._lg_stab.add_variable('stateEstimate.y', 'float') self._lg_stab.add_variable('stateEstimate.z', 'float') self._lg_stab.add_variable('stabilizer.roll', 'float') self._lg_stab.add_variable('stabilizer.pitch', 'float') self._lg_stab.add_variable('stabilizer.yaw', 'float') # The fetch-as argument can be set to FP16 to save space in the log packet self._lg_stab.add_variable('pm.vbat', 'FP16')

@gemenerik
Copy link
Member

I am pretty sure this refers to a custom RPM deck we built several years ago. Afaik there is no way of determining the RPM on-board without a specialized RPM sensor.

@gemenerik gemenerik closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants