regulation

  cm0 = map(cm0, 5, 20, 5, 20);
  cm1 = map(cm1, 5, 20, 5, 20);

What do you think this is doing?

A switch statement with 2 cases would be better as an if/else.

sketch is designed to pick values from 2 ultrasonic sensors, and depending on the values picked,
operate 2 servo motors (motors need to recieve angles from 0 to 90, and im picking values from -400 to 800)

It does not "pick" values from ping sensors, like it had a choice. It reads values from ping sensors, getting whatever the sensor detects.

Why are you picking values from -400 to 800 if the servo needs a value in the range 0 to 90?

Where are your debug statements? Where is your debug output?

And, no, I don't want to see a long list of nameless values. Prefix the value with the name of the variable, so we have some idea what is being read/computed/mapped/etc.