Estimate chassis roll and pitch and send them to hive (auto-aim misses on slopes)

Abierto
#258 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

not started

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 Pitch is 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 the has_pitch_imu path (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

  1. 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.
  2. 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_point rotates 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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CU-Robotics/firmware

Todos los issues de CU-Robotics/firmware

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.