Making an ESP32-based quadcopter from scratch
Python arduinoautopilotcontrol-theorydroneesp32flight-controlflight-controllermavlinkquadcopterquadcopter-firmwareuav
Commits on master
Fix imu command output Gyro field contained filtered gyro instead of scaled only gyro.
ed4e2d8 Oleg Kalachev committed 7 months ago
Implement battery voltage monitoring Add power subsystem. Add PWR_VOLT_PIN, PWR_VOLT_SCALE, PWR_VOLT_LPF_A parameters. Support BATTERY_STATUS mavlink messages streaming. Add pw cli command. Add voltage field to pyflix library. [email protected].
51cd5fc Oleg Kalachev committed 7 months ago
Fix working with parameters in pyflix examples PITCH_P parameter was renamed to CTL_P_P
d8591ea Oleg Kalachev committed 7 months ago
Add parameter for configuring sbus pin number, disable sbus by default
c434107 Oleg Kalachev committed 7 months ago
Make motor parameters apply without reboot Add callback to parameter definition to call after parameter is changed.
a687303 Oleg Kalachev committed 9 months ago
Minor parameters code simplifications readOnly is false by default INFINITY == INFINITY, so remove redundant check
b2daf25 Oleg Kalachev committed 9 months ago
Make rc channel numbers and calibration params use int instead of float As parameter subsystems supports int now, and int is much more natural here.
3e49d41 Oleg Kalachev committed 9 months ago
Drop messages from another systems in pyflix We shouldn't pass messages where system id != our system id. This change may be useful when there are many drones in one network.
3631743 Oleg Kalachev committed 9 months ago
Add parameters for list of modes bound to rc switch Parameters: CTL_FLT_MODE_0, CTL_FLT_MODE_1, CTL_FLT_MODE_2. Also fix a bug with incorrect choosing the mode from controlMode.
3dde380 Oleg Kalachev committed 9 months ago
Fix error when launching the sim Also make the parameters WIFI_LOC_PORT and WIFI_REM_PORT work in the sim.
377b214 Oleg Kalachev committed 9 months ago
Make setting parameter in console printing actual parameter value. In some cases, it would not be equal to the requested value.
964c0f7 Oleg Kalachev committed 9 months ago
Make motor subsystem configurable using parameters Motor pins: MOT_PIN_FL, MOT_PIN_FR, MOT_PIN_RL, MOT_PIN_RR. PWM configuration: MOT_PWM_FREQ, MOT_PWM_RES, MOT_PWM_STOP, MOT_PWM_MIN, MOT_PWM_MAX. MOT_PWM_MAX = -1 chooses duty cycle mode for brushed motors (default).
40bdaac Oleg Kalachev committed 9 months ago
Simplify lpf filter code Begin with zero instead of the initializing value, as the latter doesn't make much sense in practice, but complicates the code much.
9fd35ba Oleg Kalachev committed 9 months ago
Fix mavlink parameter set acknowledgement value If the parameter is integer the acknowledgement should contain the rounded value.
e47a31f Oleg Kalachev committed 9 months ago
Add parameter for configuring gyro bias lpf + reset the filter on `reset` command
7ad3022 Oleg Kalachev committed 9 months ago
Make failsafe configurable using parameters SF_RC_LOSS_TIME - time without rc to activate failsafe. SD_DESCEND_TIME - total time to decrease the throttle to zero. Make controlTime nan on the start to simplify the logic.
6d01cd2 Oleg Kalachev committed 10 months ago
Add parameters for configuring the mavlink subsystem MAV_SYS_ID - mavlink system id. MAV_RATE_SLOW - rate of slow telemetry (e. g. heartbeats). MAV_RATE_FAST - rate of fast telemetry (e. g. attitude, imu data).
30326a5 Oleg Kalachev committed 10 months ago
Add wifi configuration using parameters and cli Add console commands to setup wifi. Add a parameter for choosing between STA and AP mode. Add parameters for udp ports. Remove WIFI_ENABLED macro.
dd35751 Oleg Kalachev committed 10 months ago
Support integer parameters in addition to floats The variable pointer is stored as a union field. If `.integer` field is true, then integer pointer should be used. Interfaces to parameters (cli and mavlink) keep working using floats. Setting a non-finite value to int parameter will cause an error. `.value` field is renamed to `.cache`.
c0f3301 Oleg Kalachev committed 10 months ago