Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/espp
Submodule espp updated 130 files
9 changes: 5 additions & 4 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ extern "C" void app_main(void) {
5.0f, // tested by running velocity_openloop and seeing if the veloicty is ~correct
.kv_rating =
320, // tested by running velocity_openloop and seeing if the velocity is ~correct
.current_limit = 1.0f, // Amps
.zero_electric_offset = 2.3914752, // gotten from previously running without providing this
.current_limit = 1.0f, // Amps
.zero_electric_offset = 0.0f, // set to zero to always calibrate
// and it will be logged.
.sensor_direction = espp::detail::SensorDirection::COUNTER_CLOCKWISE,
.sensor_direction =
espp::detail::SensorDirection::UNKNOWN, // set to unknown to always calibrate
.foc_type = espp::detail::FocType::SPACE_VECTOR_PWM,
.driver = driver,
.sensor = mt6701,
Expand All @@ -135,7 +136,7 @@ extern "C" void app_main(void) {
.output_min = -20.0, // angle pid works on velocity (rad/s)
.output_max = 20.0, // angle pid works on velocity (rad/s)
},
.log_level = espp::Logger::Verbosity::WARN});
.log_level = espp::Logger::Verbosity::INFO});

using BldcHaptics = espp::BldcHaptics<BldcMotor>;

Expand Down