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

[doc] Error code is not documented yet #70

Open
thomasfla opened this issue Oct 1, 2020 · 2 comments
Open

[doc] Error code is not documented yet #70

thomasfla opened this issue Oct 1, 2020 · 2 comments
Assignees

Comments

@thomasfla
Copy link
Member

Error code from uDriver should be documented. From the uDriver firmware:

/* sensor packet -> status -> ERROR : values */
//! \brief No error
#define SPI_SENSOR_STATUS_ERROR_NO_ERROR 0
//! \brief Encoder error too high
#define SPI_SENSOR_STATUS_ERROR_ENCODER 1
//! \brief Timeout for receiving current references exceeded
#define SPI_SENSOR_STATUS_ERROR_SPI_RECV_TIMEOUT 2
//! \brief Motor temperature reached critical value
//! \note This is currently unused as no temperature sensing is done.
#define SPI_SENSOR_STATUS_ERROR_CRIT_TEMP 3  // currently unused
//! \brief Some error in the SpinTAC Position Convert module
#define SPI_SENSOR_STATUS_ERROR_POSCONV 4
//! \brief Position Rollover occured
#define SPI_SENSOR_STATUS_ERROR_POS_ROLLOVER 5
//! \brief Some other error
#define SPI_SENSOR_STATUS_ERROR_OTHER 7
@thomasfla thomasfla changed the title Error code is not documented yet [doc] Error code is not documented yet Jun 2, 2021
@emrecemal
Copy link

Hello I get 15 when I use GetErrorCode() module. What does it mean?

@jviereck
Copy link
Contributor

See the code here:

https://github.com/open-dynamic-robot-initiative/master-board/blob/master/firmware/main/masterboard_main.c#L319

wifi_eth_tx_data.sensor[i].status = 0xf; // specifying that the transaction failed in the sensor packet

For debugging the issue, can you send a message to the forum to keep this issue clean? https://odri.discourse.group/

@thomasfla thomasfla self-assigned this Nov 4, 2022
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

3 participants