How can I add two different programs of bldc motor and servo motor in one so that they work in parallel?
Depending on how the code is driven. The simplest would be to simply run loop1 and loop2 in the new loop.