Beat Küng
fd05c09447
vmount: fix param types, use int32_t
8 years ago
Julien Lecoeur
6e35cb002f
PX4IO interface protocol: Fix rounding error
...
Issue: This conversion test failed with gcc 7.1.1 and clang 4.0.1:
```
ERROR [tests] conversion fail: input: -0.8188, intermediate: -8187, result: -0.8187
conv FAILED
Command 'tests' failed, returned -1
```
Fix: explicit rounding
8 years ago
Daniel Agar
02cee07469
travis-ci add GCC7 SITL build and tests
...
-closes #7539
8 years ago
Daniel Agar
b9c1d87876
docker_run respect PX4_DOCKER_REPO env variable
8 years ago
Daniel Agar
aa9023b72e
COM_RC_STICK_OV fix broken metadata
8 years ago
Daniel Agar
1cc7f47003
COM_FLTMODE* add param group
8 years ago
Daniel Agar
6ddd7ea8ab
RC_MAP_FAILSAFE add missing group
8 years ago
Daniel Agar
353f637e92
move SYS_FMU_TASK to px4fmu
8 years ago
Daniel Agar
928fdf34a6
sensors move THR_MDL_FAC and MOT_SLEW_MAX to px4fmu
8 years ago
Daniel Agar
95631439f1
sensors move PWM params to pwm_params.c
8 years ago
Daniel Agar
110d2968d8
sensors move RC params to rc_params.c
8 years ago
sanderux
2f1327540a
DeltaQuad mixer upgrade
8 years ago
sanderux
220bd82b93
Per channel PWM disarmed values
8 years ago
Lorenz Meier
462f1346bd
Add motor_test command to FMUv3
8 years ago
Daniel Agar
bd7284634d
land_detector add missing header and init all vtol fields ( #7754 )
8 years ago
sanderux
3ccf3bf2a8
Consistent capitalization
8 years ago
sanderux
2c4bbf3f44
Consistent capital use
8 years ago
sanderux
e8a84b4faa
Typo
8 years ago
sanderux
a2ec771f78
Widen first waypoint max setting for FW
8 years ago
sanderux
75c3d92142
typo
8 years ago
sanderux
6ee24a0c80
Move land detector changes to vtol
8 years ago
sanderux
49d2e8a3ff
Land detector fix for VTOL in FW mode
8 years ago
Beat Küng
72f9371ca4
micrortps_client_main: remove unnecessary sleep(1);
...
... and some strange reformatting due to astyle...
8 years ago
Beat Küng
77785c01ef
micrortps_client.cpp.template: avoid 0-init & check result of orb_copy
8 years ago
Beat Küng
de8e0b54b6
micrortps_client_main: use new module documentation & check param range
8 years ago
Beat Küng
e7d19f0a1a
micrortps_client_main: add status command
8 years ago
Beat Küng
55f65b4aff
Tools/message_id.py: rename to uorb_rtps_message_ids.py for clarity
8 years ago
José Roberto de Souza
925efe990d
Initialize all outgoing vehicle_command_ack_s and vehicle_command_s
...
This will initialize those structs with zero in all fields not set
and all fields set will only be change once to the final value not
wasting CPU time zeroing it.
This will guarantee that no non-unitialized structs will have
a trash value on from_external causing it to be sent to the
MAVLink channel without need it.
8 years ago
José Roberto de Souza
7c268f4fa1
mavlink: Safely avoid send the same vehicle_command and vehicle_command_ack back
...
The previous approach was checking system id and component id but it
will not work in 100% of cases as external devices can send MAVLink
message with the right system id but with broadcast component id.
8 years ago
José Roberto de Souza
89a428fbfe
commander: Keep vehicle_command_ack_s local
...
No need to keep this struct as global or alive while looping.
8 years ago
José Roberto de Souza
7082cc13e0
mavlink: Allow vehicle to receive a command_ack message and publish it to listeners
8 years ago
José Roberto de Souza
a8cfd6f36a
msg: Use the correctly data types on vehicle_command
...
Lets save a few bytes using the right data types.
8 years ago
David Sidrane
1af5ed9024
crazyflie: Use BOARD_NUMBER_I2C_BUSES and BOARD_I2C_BUS_CLOCK_INIT
8 years ago
David Sidrane
8c1f506944
tapv1:Use BOARD_NUMBER_I2C_BUSES and BOARD_I2C_BUS_CLOCK_INIT
8 years ago
David Sidrane
b4f5e36fb1
px4fmu-v5:Add all I2C defines for all busses
...
Define BOARD_NUMBER_I2C_BUSES and BOARD_I2C_BUS_CLOCK_INIT
for I2C1-4
8 years ago
David Sidrane
64aaec4419
i2c_nuttx:Use BOARD_NUMBER_I2C_BUSES and BOARD_I2C_BUS_CLOCK_INIT
...
Used the board overrideable vlaues to define the _bus_clocks
array and initalize it.
8 years ago
David Sidrane
9644f855e3
common:Define default BOARD_NUMBER_I2C_BUSES and BOARD_I2C_BUS_CLOCK_INIT
...
Define the default I2C buss frequncies that are backward compatible
with the existing code. While allowing it the defaults to be overridden
by a board config.
Based on the legacy STM32 code, the I2C buss numbering starts at 1.
The bus frequency is stored in a 0 based array. If px4_i2cbus_initialize
returns a valid device, then the _bus-1 will act as the index to the
busses frequency.
A board may define BOARD_NUMBER_I2C_BUSES - the number of I2C busses
it supports* and BOARD_I2C_BUS_CLOCK_INIT to initalize the bus
clocks for a given busses.
BOARD_NUMBER_I2C_BUSES - the number of busses including the *highest
number bus. If the board has 2 I2C
busses I2C1 and I2C3 BOARD_NUMBER_I2C_BUSES
would be set to 3
BOARD_I2C_BUS_CLOCK_INIT - Initalization for the bus frequencies
by bus. A call init, with a frequency
less then the value used for the
Initalization will result in the device
not starting becuase the buss runs too
fast for it.
8 years ago
David Sidrane
9a21969189
px4_micro_hal:Define PX4_NUMBER_I2C_BUSES based on the arch/chip
...
PX4_NUMBER_I2C_BUSES number of busses that the HW can support
not all of them my be usesd. I.E. The STM32F427 has 3 I2C
busses but only I2C1 and I2C3 are used.
8 years ago
Beat Küng
98396a0bc5
frsky_telemetry: cleanup static vars, use less memory & fix process priority
8 years ago
Beat Küng
cb23817317
frsky_telemetry: send flight mode & gps info
...
This uses the TEMP1 & TEMP2 fields, which probably were used for something
else initially. However this implementation matches with OpenTX and APM.
8 years ago
Beat Küng
a2bfcb94ef
frsky_telemetry D protocol: refactor to use less memory & allocations
...
Also add the vehicle_gps_position & flight mode information
8 years ago
Beat Küng
9dea515eaa
frsky_telemetry S.Port: refactor to use less memory & allocations
8 years ago
Beat Küng
cf8b6a9de1
frsky_telemetry: use new module documentation
8 years ago
Beat Küng
4e5c6fc805
frsky_telemetry: fix heading for D protocol
8 years ago
Beat Küng
1d40336723
airframes parser: add dodecarotor image
8 years ago
Peter Duerr
453937a89a
Fix va_arg calls (always call va_end)
...
From the manpage: "Each invocation of va_start() must be matched by a
corresponding invocation of va_end() in the same function."
8 years ago
Peter Duerr
b845edba64
Yet another erroneous call to `px4_close` instead of `close`
...
* As indicated by @bkueng
8 years ago
Peter Duerr
6e808ad0a6
Fix additional erroneous px4_close call
...
* As indicated by @bkueng
8 years ago
Peter Duerr
73ef772537
Fix erroneous use of px4_close
...
* Close handle opened with `open` with `close` as indicated by @bkueng
8 years ago
Peter Duerr
40dff737c5
Fix uninitialized values identified by cppcheck
...
* Replace `malloc` by `calloc` for c-string initialization
* Add initializer braces for structs
8 years ago