Skip to content

Commit

Permalink
fix #419
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Nov 18, 2024
1 parent 171a7bd commit 3deb928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drone_control/common/include/drone_alt_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class DroneAltController {
/*
* thrust
*/
//out.thrust = (mass * gravity) + (throttle_gain * throttle_power);
out.thrust = (throttle_gain * throttle_power);
out.thrust = (mass * gravity) + (throttle_gain * throttle_power);
//out.thrust = (throttle_gain * throttle_power);
spd_prev_out = out;
}
spd_simulation_time += delta_time;
Expand Down
6 changes: 3 additions & 3 deletions hakoniwa/config/rc/drone_config_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
},
"battery": {
"vendor": "None",
"model": "constant",
"model": "linear",
"BatteryModelCsvFilePath": "./tmp_battery_model.csv",
"VoltageLevelGreen": 12.1,
"VoltageLevelYellow": 11.1,
"CapacityLevelYellow": 900,
"CapacityLevelYellow": 3,
"NominalVoltage": 14.8,
"NominalCapacity": 1000.0,
"NominalCapacity": 4.0,
"EODVoltage": 3.0
},
"rotor": {
Expand Down

0 comments on commit 3deb928

Please sign in to comment.