-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
RTOS for spinal and neuron #483
Conversation
…_DRIVER library (STM32Cube FW_F7 V1.16.0) for spinal.
…_DRIVER library (STM32Cube FW_F4 V1.25.0) for neuron.
…AL_DRIVER library.
…orresponds to disable "NonAutoRetransmission(NART)" in old HAL version.
…not tested on the robot yet)
…ect is generated from STM32CubeMX Important: set main.cpp as synbolic link of main.c
- no use of DMA interrupt for transfer completion, direct incremental write to ringbuffer in SRAM from UART port. - no 1ms sleep between tx packets from spinal_ros_bridge, thanks for the first improvement - no use of FIFO of DMA and burst mode, thus no 16bytes padding in spinal_ros_bridge
…mation, flight control) to RTOS
- use mail function in CMSIS RTOS to send data from RX CAN callback to RX task function. - remained problem of std:vector variables in RTOS task
…ion of intializer in RTOS task
- sue DMA for GPS UART3 RX - refactor the receive function
…to provide enough stack size for core task (512B -> 1024B); otherwise, rosPublishTask will corrupt.
…larget message into several small packets to imrpove the transmit throughput
… the project is generated from STM32CubeMX. Important feature: set main.cpp as synbolic link of main.c
- Enable IMU polling with 1Khz timer - Enable CAN RX/TX. Using queue to control RX and semaphore to control TX.
… for counter period.
…aget message from Neuron. Otherwise, the hard fault occurs because of the wrong memory access.
…rofmance. Previous polling method always corrupts because of the RTOS system
…e initalization in Neuron.
RTOS導入の開発は完了しました。ただ、このPRは#416, #417に依存しているため、順を追ってマージします。 @greenpepper123 @kanke-hayata @Takuzumi240 RTOS導入後の体内通信系のシステム構成の資料をここでまとめています。 @chibi314 |
…t. Please consider further development
… 1 at the beginning.
Enable DMA in rosserail UART TX (from MCU to host PC)
TODO
|
I have completed deployment of RTOS for spinal and neuron.
I have tested with HydrusXI quad type and Dragon. Very stable.
Features:
Improvement:
/imu
@500hz is available right now).