wil3 / gymfc

A universal flight control tuning framework
http://wfk.io/neuroflight/
MIT License
389 stars 99 forks source link

Can we reduce the feedback rate? #14

Closed Kuppharish closed 6 years ago

Kuppharish commented 6 years ago

I want to get the state updates 10 times per second rather than 1000. So can we reduce the update rate?

wil3 commented 6 years ago

Yep just change max_step_size in the Gazebo world file to 0.1, https://github.com/wil3/gymfc/blob/master/gymfc/envs/assets/gazebo/worlds/attitude-iris.world#L28

For more details on Gazebo world and model files check out the specifications here, http://sdformat.org/spec?elem=physics

That said however I would seriously consider not doing this, your results will be inaccurate. You want the step size to be as fast as your machine will allow, the suggested step size by Gazebo is 0.001. I've had to increase it to 0.0025 to run on laptop though.