Skip to content

Commit

Permalink
Remove the OPFLOW_PMW3901 the opflow hardware option
Browse files Browse the repository at this point in the history
The PMW3901 driver has never been implemented. Quote from
@digitalentity: "It's using very weird SPI timings, won't be compatible
with our scheduling"
  • Loading branch information
shellixyz committed Mar 5, 2021
1 parent 9571924 commit 00225a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tables:
values: ["NONE", "AUTO", "HMC5883", "AK8975", "GPSMAG", "MAG3110", "AK8963", "IST8310", "QMC5883", "MPU9250", "IST8308", "LIS3MDL", "MSP", "FAKE"]
enum: magSensor_e
- name: opflow_hardware
values: ["NONE", "PMW3901", "CXOF", "MSP", "FAKE"]
values: ["NONE", "CXOF", "MSP", "FAKE"]
enum: opticalFlowSensor_e
- name: baro_hardware
values: ["NONE", "AUTO", "BMP085", "MS5611", "BMP280", "MS5607", "LPS25H", "SPL06", "BMP388", "DPS310", "MSP", "FAKE"]
Expand Down
2 changes: 1 addition & 1 deletion src/main/sensors/opflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static float opflowCalibrationFlowAcc;
#define OPFLOW_UPDATE_TIMEOUT_US 200000 // At least 5Hz updates required
#define OPFLOW_CALIBRATE_TIME_MS 30000 // 30 second calibration time

PG_REGISTER_WITH_RESET_TEMPLATE(opticalFlowConfig_t, opticalFlowConfig, PG_OPFLOW_CONFIG, 1);
PG_REGISTER_WITH_RESET_TEMPLATE(opticalFlowConfig_t, opticalFlowConfig, PG_OPFLOW_CONFIG, 2);

PG_RESET_TEMPLATE(opticalFlowConfig_t, opticalFlowConfig,
.opflow_hardware = OPFLOW_NONE,
Expand Down
7 changes: 3 additions & 4 deletions src/main/sensors/opflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@

typedef enum {
OPFLOW_NONE = 0,
OPFLOW_PMW3901 = 1,
OPFLOW_CXOF = 2,
OPFLOW_MSP = 3,
OPFLOW_FAKE = 4,
OPFLOW_CXOF = 1,
OPFLOW_MSP = 2,
OPFLOW_FAKE = 3,
} opticalFlowSensor_e;

typedef enum {
Expand Down

0 comments on commit 00225a1

Please sign in to comment.