Willian Galvani
ce312d0328
GCS_MAVLink: use get_battery_remaining_percentage() for BATTERY_STATUS
2021-02-25 10:38:46 -08:00
Willian Galvani
d583d157e7
GCS_MAVLink: add default instance to get_battery_remaining_percentage, make it const
2021-02-25 10:38:46 -08:00
Andrew Tridgell
2f5e020a39
GCS_MAVLink: fixed critical error on prefight cal ops
2020-09-21 19:21:40 +01:00
Willian Galvani
7855d324b3
GCS_Common: create virtual get_battery_remaining_percentage()
2020-03-16 15:47:12 -07:00
Willian Galvani
9c8d14e500
AP_HAL: Fix navigator orientation
2020-02-06 15:08:22 -05:00
Patrick José Pereira
70cb2822e5
AP_HAL_LINUX: Add support for Raspberry Pi 4
...
The Raspberry Pi 4 uses a new BCM cpu, the BCM2711 with
a peripheral base address of 0xFE000000
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-06 15:08:22 -05:00
Patrick José Pereira
352347ba49
AP_Baro: Add BME280 ID in BMP280
...
BME280 has the same memory layout than BMP280,
but with more features.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-06 15:08:22 -05:00
Patrick José Pereira
d1b2eec802
AP_HAL_Linux: Add navigator board
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-06 15:08:22 -05:00
Patrick José Pereira
795489f04a
AP_Notify: Add navigator board
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-06 15:08:22 -05:00
Patrick José Pereira
997af234f3
AP_HAL: Add navigator board
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-06 15:08:22 -05:00
Michael du Breuil
35d8f02c83
AP_Logger: Fix logging of current on non primary instances
2020-01-29 09:17:12 -05:00
Andrew Tridgell
e7ffe5f00b
HAL_ChibiOS: ensure bootloader flash is multiple of 32 bytes
2019-12-23 17:38:41 +11:00
Willian Galvani
d592382057
AC_PosControl_Sub: do not reset I term when relaxing alt hold controller
2019-12-16 10:10:41 -05:00
Willian Galvani
79b3cfbbae
APMotors_6DOF: Implement motor_is_enabled(), get_motor_angular_factors() and set_reversed();
2019-10-15 15:15:25 +11:00
Willian Galvani
94c2651f86
AP_TemperatureSensor: Update TSYS01 for Pixhawk2
2019-10-15 15:15:25 +11:00
Willian Galvani
970abdfcc3
APMotors6DOF: add case for SIMPLEROV_3
2019-10-15 15:15:25 +11:00
Willian Galvani
8fcebbc8b1
APMotors6DOF: add roll factor for motors 4 and 5 for SIMPLEROV_4 and SIMPLEROV_5
2019-10-15 15:15:25 +11:00
Willian Galvani
c045be20bb
Sub: remove angle_boost logic
...
This gets in the way of the vectored thrust implemented,
and is just not useful for Sub.
2019-10-15 15:08:26 +11:00
Willian Galvani
ac1ef0bc6a
Sub: AP_Motors6DOF: create get_throttle_in_bidirectional()
2019-10-15 15:08:26 +11:00
Willian Galvani
efddff71bf
SITL: Sub: add angular drag based on a laminar, external flow
2019-10-15 15:08:26 +11:00
Willian Galvani
6bcd2162b9
SITL: Sub: Fix rotational physics logic
2019-10-15 15:08:26 +11:00
Willian Galvani
a1c5b7ba55
SITL: Sub: Use proper phyisics for thrusters
2019-10-15 15:08:26 +11:00
Willian Galvani
237ad94f92
SITL: Submarine: add torque for static stability
...
Subs are statically stable regarding pitch and roll.
This patch reproduces this in SITL
2019-10-15 15:08:26 +11:00
Willian Galvani
78248a1083
SITL: add deadzones to Sub thrusters PWM signals
2019-10-15 15:08:26 +11:00
Willian Galvani
9abe4fc445
SITL: Fix buoyancy direction for earth-frame
...
Previously the sub would just go upwards, so rolling it 180º caused it to sink
2019-10-15 15:08:26 +11:00
Willian Galvani
9cd0aef53e
SITL: Add 6dof frame for Sub
2019-10-15 15:08:26 +11:00
Willian Galvani
0ba93c0787
SITL: get rid of frame_vectored.h for Sub
2019-10-15 15:08:06 +11:00
Andrew Tridgell
6ebb9ad84a
AP_HAL: enabled SLCAN on fmuv2 and Pixhawk1-1M
...
this fits for now, and is needed for CAN GPS for now
2019-10-07 21:14:24 +11:00
Andrew Tridgell
42c4b41bf6
AP_UAVCAN: cleanup ifdefs for SLCAN enable
2019-10-07 21:14:24 +11:00
Andrew Tridgell
83bacfa89c
AP_HAL: cleanup ifdefs for SLCAN enable
2019-10-07 21:14:24 +11:00
Andrew Tridgell
0eb9a58f17
AP_HAL_ChibiOS: cleanup ifdefs for SLCAN enable
2019-10-07 21:14:24 +11:00
Andrew Tridgell
53e03816c0
AP_BoardConfig: cleanup ifdefs for SLCAN enable
2019-10-07 21:14:24 +11:00
Andrew Tridgell
a452f8e4ed
switch optimisation to O2
...
on average makes for faster and smaller code than O3
2019-10-06 10:58:07 +11:00
Andrew Tridgell
ee25d05f3c
AP_Math: make fill_nanf() use a signalling NaN
...
we want use of these values to trigger a FPE
2019-10-06 10:58:07 +11:00
Andrew Tridgell
43df0022e1
use common variables for EKF
2019-10-06 10:58:07 +11:00
Andrew Tridgell
9ad9fe42bc
AP_NavEKF2: use parent class for intermediate static variables
...
this makes the code faster as well as using less memory when both EK2
and EK3 are enabled
2019-10-06 10:58:07 +11:00
Andrew Tridgell
46628b4401
AP_NavEKF2: make it easy to do EK2 timing tests
...
for future benchmarking
2019-10-06 10:58:07 +11:00
Andrew Tridgell
cd9c9e0809
AP_NavEKF: fixed build with vector index checking
2019-10-06 10:58:07 +11:00
Andrew Tridgell
156a64aca0
AP_NavEKF: added a common parent class for EKF2 and EKF3 core classes
...
this provides a common location for static intermediate variables in
EK2 and EK3. This has a few benefits:
- the compiler can determine the address of the frequently accessed
variables at compile time, making them faster
- by sharing between EK2 and EK3 we save a lot of memory if both EK2
and EK3 are enabled
- we can fill all these with NaN in SITL on every loop, which allows
us to catch cases where the variables are ever re-used between
loops, which guarantees we aren't mixing data between EKF lanes or
between EK2 and EK3
2019-10-06 10:58:07 +11:00
Michel Pastor
eb24e12666
AP_Logger: fix logging on 256Mbit flash chips
2019-10-06 10:58:07 +11:00
Michel Pastor
d7033dbf0d
AP_Logger: fix AP_Logger_Block::get_num_logs()
2019-10-06 10:58:07 +11:00
Andrew Tridgell
0ec6210184
HAL_ChibiOS: removed wait on CAN peripheral in H7
...
these wait busy loops can take a very long time, and end up causing
interrupts to be lost elsewhere in the system, causing lost bytes on
UARTs
We should not have while loops waiting on peripharals like this. If we
do need to wait for a flag to clear then it needs to be done in a low
priority thread, or we need to check for completion in a timer
CAN still seems to work with this change, but needs flight testing
2019-10-06 10:58:07 +11:00
Andrew Tridgell
d017a9a60d
AP_Logger: fixed LOG_FILE_DSRMROT with delayed log stop
...
now that we persist logging for 15s after disarm we need to also delay
the log rotation if LOG_FILE_DSRMROT=1. Otherwise we will put the log
data into the next log, which defeats the purpose of the 15s
persistance
2019-10-06 10:58:07 +11:00
Andrew Tridgell
5a25d5c42d
AP_Proximity: fixed incorrect use of fabs()
2019-10-06 10:58:07 +11:00
vierfuffzig
0b1cbc7bde
AP_AHRS: fix custom orientation ToRad conversion
2019-10-06 10:58:07 +11:00
Andrew Tridgell
df86990c96
GCS_MAVLink: use HAL_MEM_CLASS for status sizes
2019-10-06 10:58:07 +11:00
Andrew Tridgell
6cd6b37826
AP_Logger: use HAL_MEM_CLASS for logging buffer size
2019-10-06 10:58:07 +11:00
Andrew Tridgell
609a2d95f8
AP_Logger: try harder to use close to user buffer size
...
this stops us drastically reducing buffer size when low on memory
2019-10-06 10:58:07 +11:00
Andrew Tridgell
3105255080
AP_HAL: added HAL_MEM_CLASS for amount of memory
2019-10-06 10:58:07 +11:00
Andrew Tridgell
b8a77890b6
HAL_ChibiOS: generate HAL_MEMORY_TOTAL_KB for each board
2019-10-06 10:58:07 +11:00