GoConqr has a new look! Let us know what you think.

Flowchart

psa

Dominic Shevchuk English

Flowchart content

  1. START

  2. Initialize input task veriables

  3. Set s1 and s2 flags to 0 and set the selected command.

  4. s4884745_rcdmin_button_read()

  5. s1_flag = 1?

  6. Increment the selected cmd

  7. maximum increment?

  8. return to the first cmd

  9. Send the cmd_update and s1_pressed to output queue

  10. s3_flag = 1?

  11. s4884745_rcdmin_switchbank()

  12. Form output:

    cmd = selected_cmd, value = VALUE[7:0]

  13. Send output to RCDM queue and s3_pressed to output queue

  14. Delay 50ms

  15. START

  16. Set S1 = 0, S3 = 0, and all event flags to 0.

  17. s1 = read s1 state and s3 = read s3 state.

  18. for both buttons:

    pressed = 0, release = 1

  19. S1 edge release to press?

  20. set s1_event = 1;

  21. previous_s1 = current_s1

  22. S3 edge release to press?

  23. s3_event = 0;

  24. previous_s3 = current_s3

  25. return:

    s1_event and s3_event

  26. END of function

  27. START

  28. value = 0

    bit_index = 0

  29. Read swich input.

  30. value[bit_index] = switch_state

  31. bit_index=bit_index+1;

  32. bit_index < 8

  33. Return VALUE[7:0]

  34. END

  35. START

  36. Initialise output task variables, cmd display to OLED, XYZ display and LED state.

  37. Receive message from output queue

  38. message received?

  39. message = cmd_update?

  40. message = xyz_update?

  41. message = btn_press?

  42. s4884745_rcdmout_display(message)

  43. s4884745_rcdmout_update_btn(message)

  44. s4884745_rcdmout_display_xyz(message)

  45. keep current output

  46. rtos delay 50ms

  47. Y

  48. START

  49. input command

  50. cmd valid?

  51. Used default input

  52. Output 4-bit display pattern for the cmd

  53. s4884745_rdcminit()

  54. LTA1000G map bits to SEG0 through to 3

  55. Set SEG0 = bit_0; SEG1= bit_1; SEG2=bit_2; SEG=bit_3

  56. Return output

  57. END

  58. START

  59. get acc_val

    = [val1, val2, vla3]

  60. Display to 7 segment display

  61. axis == X?

  62. axis == Y?

  63. axis == Z?

  64. set X

  65. set Y

  66. set Z

  67. Refresh 7 segment display

  68. END

  69. START

  70. input of some sort

  71. button press?

  72. Radio tx?

  73. Set D2 high

  74. Set D1 high

  75. Store LED state for next output

  76. Return current state

  77. START

  78. xQueueReceive(txQueue, &msg, 10 ticks)

  79. message received?

  80. Init radio tx variables.

  81. Build radio packed from message

  82. s4884745_hamming(message);

  83. s4884745_reg_tx_send_packet()

  84. tx success?

  85. send tx semaphore to output queue

  86. Keep error state

  87. 50ms rtos delay

Information

Description
Flowchart on psa, created by Dominic Shevchuk on 03/05/2026.
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?