Skip to content

Commit

Permalink
Clear out TODOs for ICM-42688-P
Browse files Browse the repository at this point in the history
  • Loading branch information
jpieper committed Apr 12, 2021
1 parent a1485a9 commit 44f9db9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions fw/icm42688.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class SpiMaster {
};
SpiMaster(SPI* spi, PinName cs, MillisecondTimer* timer, const Options& options)
: spi_(spi), cs_(cs, 1), timer_(timer), options_(options) {
// TODO: Set SPI frequency.
}

void Write(uint8_t address, std::string_view data) {
Expand All @@ -95,8 +94,6 @@ class SpiMaster {
timer_->wait_us(1);

cs_.write(1);

// TODO: See if there is any need to delay here.
}

void Read(uint8_t address, mjlib::base::string_span data) {
Expand Down Expand Up @@ -163,7 +160,6 @@ class Icm42688::Impl {
spi_{options.mosi, options.miso, options.sck},
master_{&spi_, options.cs, timer, {}},
irq_{options.irq, PullUp} {
// TODO: Try a higher frequency.
spi_.frequency(5000000);

// Lets give the part some time after power-on to get ready. We
Expand Down Expand Up @@ -222,11 +218,8 @@ class Icm42688::Impl {

master_.WriteScalar<uint8_t>(ICM_ACCEL_CONFIG0, (accel_range << 5) | odr);

// TODO: Program gyro anti-alias filter?

// TODO: Program accel anti-alias filter?

// TODO: Program the gyro notch filters?
// Maybe eventually we could use the gyro/accel anti-alias filters
// or the gyro notch filter?

setup_data_.rate_hz = [&]() {
if (odr == 11) { return 13; }
Expand Down

0 comments on commit 44f9db9

Please sign in to comment.