open-dynamic-robot-initiative / master-board

Hardware and Firmware of the Solo Quadruped Master Board
BSD 2-Clause "Simplified" License
120 stars 41 forks source link

[doc] Error code is not documented yet #70

Open thomasfla opened 4 years ago

thomasfla commented 4 years ago

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
emrecemal commented 2 years ago

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

jviereck commented 2 years ago

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/