bithollow / bitforge

Forge bithollow binaries
2 stars 2 forks source link

[M3] software support power module on BH. #64

Closed muzi-15 closed 7 years ago

muzi-15 commented 7 years ago

Background: Real-time battery voltage checking and notify. TODO: Modify software to support. Output: APM software

muzi-15 commented 7 years ago

need about 2 days

muzi-15 commented 7 years ago

Need add the bellow in the AP_BattMinor_Analog.h(3DR power module). due to there is no actual power module, so use the sonar to simulate and result is ok.

define AP_BATT_VOLT_PIN 0 define AP_BATT_CURR_PIN 1 define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f

onceme commented 7 years ago

If we don't modify the code, can we enable power module by setting APM Planner?

muzi-15 commented 7 years ago

eplease refer to the "power modules" webpage for the detailed informations.

muzi-15 commented 7 years ago

has updated the power module page. so close it.