Skip to content

Conversation

@DiegoLizarraga
Copy link

revisa mis cambios porfa 7w7

Copy link
Contributor

@JorgePerC JorgePerC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPI_HandleTypeDef* spiHandle;
GPIO_TypeDef* csPort;
uint16_t csPin; //esto directamente nose, pero venia en un ejemplo que vi
} SPI_Config;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es tan necesario. porque en teoría ya está definido en el robot config

uint16_t csPin; //esto directamente nose, pero venia en un ejemplo que vi
} SPI_Config;

SPI_Config SPI1_Config = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Igual, no hay necesidad de inicializarla

while (1) {

uint8_t command = 0x01;
uint8_t response = SPI_Transfer(&SPI1_Config, command);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increíble, jaja
Eso es más que nada para mandar, pero aún no has especificado el comando...
Pregúntale a Anita cuál es el comando que tienes que enviar para que el IMU te de datos
Igual, lo que más importa es la lectura

@JorgePerC
Copy link
Contributor

Se me estaba olvidando...
Dentro de owlware, tenemos los comandos para leer el sensor específico
Puedes revisar ist8310driver_middleware
o el de BMI088driver

@JorgePerC JorgePerC self-assigned this Jan 29, 2025
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

Successfully merging this pull request may close these issues.

3 participants