This article explains how ti change the default configuration of your Ouster lidar sensor (OS0, OS1 or OS2).
Instructions
Make sure you can communicate correctly with your sensor. (Help)
Use the TCP command "set_config_param <param> <value>" in order to change all the parameters you want/need to change.
Once you have changed all the parameters you can check them running the "get_config_param staged <param>" command and make sure all the values are the ones you want.
Reinitialize the sensor with the “reinitialize“ TCP command.
(Optional) Once you have reinitialized the sensor you can check the active parameters running the "get_config_param active <param>" command and make sure all the values are the ones you want.
Finally run the "write_config_txt" command to save all those parameters as the default one.
It is recommended to check the values of all the parameters after the first reboot to make sure the whole process was a success.