Estimate chassis roll and pitch and send them to hive (auto-aim misses on slopes)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- embedded-iot
Línea de trabajo
Start with src/controls/estimator.cpp, especially the roll and pitch axis code around lines 127–215 and GimbalAndChassisEstimator::step_states around lines 151–176. Check the yaw IMU data and current chassis state flow, then compare the packet or state changes needed with CU-Robotics/hive-rs#250 and #215. Done means firmware sends gravity-referenced chassis roll and pitch in a form the matching hive change can consume.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Firmware side of CU-Robotics/hive-rs#250.
Problem
Auto-aim assumes the chassis is level. On a slope (such as the 15° ramps), hive applies the ballistic drop along the chassis's "down" instead of true down, so shots start missing past about 5 m. Hive can't fix this alone, because firmware doesn't send any gravity-referenced attitude.
What firmware sends today
Gimbal Pitchis the pitch encoder angle relative to the chassis (GimbalAndChassisEstimator::step_states,src/controls/estimator.cpp, around lines 151–176).- Walter and Gerald have
Has Pitch IMU: 0, so thehas_pitch_imupath (estimator.cpp:123,:176) isn't used. - The shared state list has no chassis roll or pitch. The states are Chassis X/Y/Heading, Gimbal Yaw/Pitch, Flywheels, Feeder and Lower Feeder (hive
src/actors/comms/config/state.rs).
What's needed
- Estimate chassis roll and pitch relative to gravity. The yaw IMU is already on the robot. The roll/pitch axis code in
estimator.cpp(around lines 127–215, partly commented out) is a starting point. - Send them to hive, either as new states or as a packet field. This is a comms change, so it needs a matching hive-rs PR, where
localize_pointrotates targets into a gravity-aligned frame.
Related: #215 (VN100 driver into SensorManager, a possible attitude source). See CU-Robotics/hive-rs#250 for the hive side, error estimates and how to test.
- Lenguaje dominante
- C
- Estrellas
- 11
- Forks
- 2
- Merge medio
- 18 d 3 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CU-Robotics/firmware
-
Add unit tests for SafetyStateAbiertogood first issue not started
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
CU-Robotics/firmware#257 ·
-
Pre-flight checksAbiertoin progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
CU-Robotics/firmware#222 ·
-
Fix existing clang-tidy findingsPosiblemente ocupada @roccoagain la tomó hoy. Abierto
CU-Robotics/firmware#262 · 1 asignado ·
-
good first issue not started
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
CU-Robotics/firmware#256 ·
-
in progress software-in-the-loop
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
CU-Robotics/firmware#250 · 1 comentario ·
Todos los issues de CU-Robotics/firmware
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
ROCm/rocm-libraries#16108 ·
Los mantenedores suelen responder en 2 días
-
wiznet_common: emac_wiznet_transmit() reports a frame as failed when the SEND_OK read is delayed (IDFGH-18721)Posiblemente ocupada @valdijanio la tomó hoy. AbiertoStatus: Opened
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
espressif/esp-eth-drivers#198 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
schrodinger/pymol-open-source#532 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
facebookexperimental/hermit#347 ·
Los mantenedores suelen responder en 1 día