If you do something madly, you do it in a wild and uncontrolled manner.
Down in the streets people were waving madly.
大街上,人们在疯狂地挥手。
You can use madly to indicate that one person loves another a great deal.
She has fallen madly in love with him.
她疯狂地爱上了他。