mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Merge pull request #10699 from TonyBlit/virtual_current_header
Fixes in comments in current.h
This commit is contained in:
commit
85b34b4c21
1 changed files with 3 additions and 3 deletions
|
@ -82,12 +82,12 @@ PG_DECLARE(currentSensorADCConfig_t, currentSensorADCConfig);
|
||||||
|
|
||||||
typedef struct currentMeterVirtualState_s {
|
typedef struct currentMeterVirtualState_s {
|
||||||
currentMeterMAhDrawnState_t mahDrawnState;
|
currentMeterMAhDrawnState_t mahDrawnState;
|
||||||
int32_t amperage; // current read by current sensor in centiampere (1/100th A)
|
int32_t amperage; // current read by current sensor in centiamperes (1/100th A)
|
||||||
} currentSensorVirtualState_t;
|
} currentSensorVirtualState_t;
|
||||||
|
|
||||||
typedef struct currentSensorVirtualConfig_s {
|
typedef struct currentSensorVirtualConfig_s {
|
||||||
int16_t scale; // scale the current sensor output voltage to milliamps. Value in 1/10th mV/A
|
int16_t scale; // scale the throttle to centiamperes, using a hardcoded thrust linearization function (see Battery.md)
|
||||||
uint16_t offset; // offset of the current sensor in millivolt steps
|
uint16_t offset; // offset of the current sensor in centiamperes (1/100th A)
|
||||||
} currentSensorVirtualConfig_t;
|
} currentSensorVirtualConfig_t;
|
||||||
|
|
||||||
PG_DECLARE(currentSensorVirtualConfig_t, currentSensorVirtualConfig);
|
PG_DECLARE(currentSensorVirtualConfig_t, currentSensorVirtualConfig);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue