Julian Oes
24bdf79180
ROMFS: fix debug output
3 years ago
Julian Oes
c2e0e09b2d
commander: reduce PWM max again
...
This is no longer required now.
3 years ago
Julian Oes
e4763f15f6
Mantis: add RC hacks
...
This changes the way RC is handled for the Mantis:
- The RC values are re-written when arriving over MAVLink. They are
rescaled from 0..4095 to 1000..2000 and the channel bits added to
separate channels. This makes the downstream handling easier.
- Gimbal pitch is moved from Aux1 to Aux2 as that should be the default.
- Aux3 and Aux4 are used for the photo and video trigger.
- The speed button is used as the FLTMODE channel and set to switch
between POSCTL and ALTCTL.
3 years ago
Julian Oes
9fe7a40673
manual_control: enable sending camera commands
3 years ago
Julian Oes
1754e25920
vmount: add param to use RC input for angular rate
...
Until now RC input was translated to angles only. I added the param
MNT_RC_IN_MODE which allows the RC input to be used for angular rate.
3 years ago
Julian Oes
f03990f015
Mantis: prevent output setup from running
...
This is not required as we start tap_esc directly and load the mixer.
3 years ago
Julian Oes
cb15728536
Mantis: save mission in RAM
...
This is using a reduced number of mission items of 1000 instead of 2000
in order to fit in RAM.
3 years ago
Julian Oes
7d09635fb6
ROMFS: add option for dataman args
...
This is required for boards requiring dataman in RAM.
3 years ago
Julian Oes
bb09646b41
ROMFS: allow the output config to be skipped
...
This is required for the ATL Mantis-EDU.
3 years ago
Julian Oes
0fbb03dee1
ROMFS: add option for startup tune volume
...
Otherwise the CBRK_BUZZER param does not work as it should.
3 years ago
Julian Oes
a50f7af3b1
Mantis: update bootloader and SYS_AUTOSTART
...
This adds a check for the previous SYS_AUTOSTART id. If it is still the
old/previous SYS_AUTOSTART id, it will flash the new bootloader as well
as set the proper SYS_AUTOSTART id.
3 years ago
Julian Oes
fa282cfe86
Mantis: make startup less loud
3 years ago
Julian Oes
880292f5d7
commander: relax RC min/max
3 years ago
Julian Oes
2b4b87571c
Mantis: adapt RC calibration
...
This is with a newer RC firmware.
3 years ago
Julian Oes
aa007dadee
commander: fix emergency power off
...
From what I can see the CONFIG_BOARDCTL_POWEROFF is not really used
anywhere, however, the BOARD_HAS_POWER_CONTROL is something that is set,
e.g. for the Mantis, to allow power off.
3 years ago
Julian Oes
6301fa35c1
commander: add command to power off
3 years ago
Julian Oes
4a43155e69
Mantis: remove duplicate define
3 years ago
Julian Oes
7759ffb00e
Mantis: reduce power button hold time
...
This is more intuitive and matches the tune.
Hopefully, it's still long enough to prevent any false positives.
3 years ago
Julian Oes
6960600c28
Mantis: play power off tune
...
To play a power off tune, I needed to convert the file to C++, so that I
could use the uORB::Publication.
The current implementation starts playing the power off sound but then
stops it as soon as the button is released.
The problem is mostly that we only get an interrupt when the button is
pressed or released but we don't seem to be able to poll it, at least
not in the current state.
3 years ago
Julian Oes
860b23dd17
tunes: add tune to power off
...
This is used by the ATL Mantis EDU to help the user realize when the
drone is powered off.
3 years ago
Julian Oes
a21fefda48
tune_control: prevent segfault
3 years ago
Julian Oes
856e229482
ROMFS: reset the startup sound for Mantis
3 years ago
Julian Oes
1be4e35ed4
ROMFS: move startup sound further down
...
This way it works for the Mantis where the tap_esc driver needs to be
running before beeping is posssible.
3 years ago
Julian Oes
76920171c7
tap_esc: fix tunes
...
This removes the redundant _play_tone flag and instead just polls the
next_note() interface to check if there is something to play.
3 years ago
Julian Oes
de1849167d
Mantis: Add upload_wifi target to upload firmware
3 years ago
Julian Oes
185e4cfd48
Mantis: set range finder limits, and min quality
...
The limits might somewhat match the sensor, guessed based on the
original driver.
The quality is set so that spikes when sitting on the ground are not
used.
3 years ago
Julian Oes
dd00e43ca3
mavlink: set signal_quality (and sane variance)
...
Otherwise this distance data is actually not used at all.
3 years ago
Julian Oes
aefbd80b53
mavlink: use optical flow limits from params
...
This makes more sense than hard-coding arbitrary values.
3 years ago
Julian Oes
f48c3a2cc6
mavlink: don't handle RC_CHANNELS
...
This is a status/output but should not be an input for the autopilot.
Instead RC_CHANNELS_OVERRIDE should be used.
3 years ago
Daniel Agar
cc1fee525a
lib/sensor_calibration: handle calibration slot change on parameter update
3 years ago
Daniel Agar
ab547bb982
sensors/vehicle_angular_velocity: RPM notch don't fully disable if first harmonic frequency drops below minimum frequency
...
- keep higher frequency harmonics enabled per ESC
- cleanup timestamp handling (timeouts, etc)
3 years ago
Daniel Agar
b58922a5d7
sensors/vehicle_angular_velocity: notch filters automatically reset on sufficient parameter change
3 years ago
Daniel Agar
7d632254be
NotchFilter push initialization/reset into filter
...
- this simplifies the reset by allowing a notch filter to reset as
needed
- improves cascade initialization, on reset each filter will reset
properly from the previous
3 years ago
Daniel Agar
2e2ac36cab
drivers/uavcan: make firmware server available on both CAN1/CAN2 always (if enabled)
...
- uavcan firmware server no longer shuts down when arming (nodes might restart in flight)
- always handle UAVCAN parameters with or without the FW server active
- remove legacy ESC enumeration in FW server
3 years ago
Daniel Agar
d9e7315420
sensors: automatically set initial accel/gyro calibration if stable bias available
3 years ago
Daniel Agar
e731fcdbc0
sensors (accel/gyro/mag) determine if external with device id
3 years ago
Daniel Agar
45040be669
ekf2: accel/gyro/mag sensor cal minor cleanup
...
- cleanup obsolete comments
- remove debug helpers
- add additional variance requirements to mag bias stable (matching accel & gyro)
3 years ago
Daniel Agar
c3ca40a98f
drivers/px4io: delete monitor command
...
- the px4io console isn't even connected on most flight controllers
3 years ago
Daniel Agar
e5d49f6fff
drivers/px4io: delete unused detect
3 years ago
Daniel Agar
d077ca15fb
delete PWM_SERVO_SET, PWM_SERVO_SET_MODE, systemcmds/motor_ramp, and pwm_out test
3 years ago
Daniel Agar
df44df2df6
delete systemcmds/esc_calib
...
- this is redundant with commander esc_calibration
3 years ago
Daniel Agar
03bdc460d8
drivers/px4io: PWM_SERVO_GET_FAILSAFE_PWM don't get registers directly
3 years ago
Daniel Agar
d3301ba826
delete PWM_SERVO_GET_TRIM_PWM
3 years ago
Daniel Agar
8de59dad32
delete PWM_SERVO_SET_TERMINATION_FAILSAFE
3 years ago
Daniel Agar
1739ecc981
delete PWM_SERVO_SET_FORCE_FAILSAFE
3 years ago
Daniel Agar
649d3e3f55
delete PWM_SERVO_SET_DISABLE_LOCKDOWN/PWM_SERVO_GET_DISABLE_LOCKDOWN
3 years ago
Daniel Agar
b7ed4fd3e0
delete PWM_SERVO_SET_DISARMED_PWM
3 years ago
Daniel Agar
551a31ce2f
delete PWM_SERVO_SET_FAILSAFE_PWM
3 years ago
Daniel Agar
daa925137c
boards: move default battery calibration defines to parameter defaults
3 years ago
Daniel Agar
78b3d22471
lib/mixer_module: consume output_limit library
3 years ago