mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 16:14:37 +08:00
merge fixes
This commit is contained in:
@@ -664,7 +664,7 @@ bool Encoder::update() {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto maybe_phase = axis_->open_loop_controller_.phase_.get_any();
|
||||
auto maybe_phase = axis_->open_loop_controller_.phase_.any();
|
||||
if (maybe_phase) {
|
||||
float phase = maybe_phase.value();
|
||||
// Early increment to get the right divisor in recursive average
|
||||
|
||||
@@ -24,9 +24,6 @@ public:
|
||||
float phase_offset_float = 0.0f; // Sub-count phase alignment offset
|
||||
int32_t cpr = (2048 * 4); // Default resolution of CUI-AMT102 encoder,
|
||||
float index_offset = 0.0f;
|
||||
uint16_t abs_spi_cs_gpio_pin = 1;
|
||||
uint16_t sincos_gpio_pin_sin = 3;
|
||||
uint16_t sincos_gpio_pin_cos = 4;
|
||||
bool use_index = false;
|
||||
bool pre_calibrated = false; // If true, this means the offset stored in
|
||||
// configuration is valid and does not need
|
||||
|
||||
@@ -974,7 +974,7 @@ interfaces:
|
||||
pos_estimate_counts: readonly float32
|
||||
pos_cpr_counts: readonly float32
|
||||
delta_pos_cpr_counts: readonly float32
|
||||
pos_circular: {type: readonly float32, c_getter: pos_circular_.get_any().value_or(0.0f)}
|
||||
pos_circular: {type: readonly float32, c_getter: pos_circular_.any().value_or(0.0f)}
|
||||
hall_state: readonly uint8
|
||||
vel_estimate: {type: readonly float32, c_getter: vel_estimate_.any().value_or(0.0f)}
|
||||
vel_estimate_counts: readonly float32
|
||||
|
||||
Reference in New Issue
Block a user