Commit Graph

16556 Commits

Author SHA1 Message Date
Fabien-B ecf0dc14ca cleanup 2025-08-26 16:30:03 +02:00
Fabien-B 113e50dc5a [uavcan] recover from buffer too small (discard message) 2025-08-25 11:17:05 +02:00
Fabien-B 2e504ff524 code cleaning 2025-08-25 11:17:05 +02:00
Fabien-B eb5dd25cc5 [uavcan] dynamic node id allocator 2025-08-25 11:17:05 +02:00
Fabien-B 2cdd959621 [uavcan] remove weird check 2025-08-25 11:17:05 +02:00
Fabien-B a0091ee0df [uavcan] buffer tx messages in FIFO 2025-08-25 11:17:05 +02:00
OpenUAS c396d38321 Now able to use ADC_CHANNEL_RSSI as ADC input (#3524)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Docker update / build_docker_image (push) Has been cancelled
Example of use <configure name="ADC_AIRSPEED" value="ADC_CHANNEL_RSSI"/> , however a flightcontroller board file must have a RSSI pin assigned else it is not assignable.
2025-08-17 09:43:54 +02:00
NoahWe e42a7ef901 [rotwing] V3B Delivery (#3449)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* rebase with master

* undo double define during rebase

* revert eff sched changes
2025-08-15 16:00:32 +02:00
Fabien-B c86ab15f0c [uavcan] buffer tx messages in FIFO (#3513)
* [uavcan] buffer tx messages in FIFO

* [uavcan] remove weird check

* [uavcan] Fix message reception

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-08-15 15:49:41 +02:00
Fabien-B a05854c3b3 [test] improve module tests (#3517)
Co-authored-by: Fabien-B <Fabien-B@github.com>.
2025-08-15 15:48:51 +02:00
OpenUAS 0008be8ec6 Fix not able to upload AP firmware (#3523) 2025-08-15 15:35:52 +02:00
lthoma5 af2be6f092 [imu/board] Add support for ICM45686 and LTS release of the Cube Orange+ (#3519)
* Add invensense3_456 driver for ICM45686 IMU

* Add support for 9th SPI slave

* Add SPI_SLAVE9 with PG01 as Chip Select on Cube Orange

Used in the Cube Orange Plus LTS / "shiny" release for the non-isolated IMU (on SPI bus 1)

* Add cube_orangeplus_lts board with new ICM45686 IMUs
2025-08-15 15:35:06 +02:00
OpenUAS e018eeed47 Fix state wrecking RM3100 mag spikes (#3522) 2025-08-15 15:32:23 +02:00
OpenUAS 37bb3ccbb4 Fix MilliAmpereOfAdc Default in remaining boardfiles (#3521)
This change to avoid double define warning when setting an own ADC value.
2025-08-15 15:30:47 +02:00
Christophe De Wagter 6e83bb634c Disable GPS_Fix for a given number of seconds (#3479)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* Disable GPS_Fix for a given number of seconds in ABI messages for testing purposes.

* Add protection to by default not allow disabling GPS

* Add example

* Covert into TRUE/FALSE since the define in seconds is not used.
2025-08-14 14:21:32 +02:00
Alejandro Rochas Fernández 4e7259a17f Add Bayesian Obstacle Grid Mapping with TFmini Lidar Support and Simulation (#3510)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
2025-08-07 23:17:19 +02:00
Fabien-B b706cebb5a [mag] add UAVCAN mag module (#3514)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-08-01 10:46:43 +02:00
Fabien-B 1e397aee61 [circular buffer] store size as uint16_t, add drop function. (#3512)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-07-29 17:07:22 +02:00
Fabien-B 464d34ee56 [sbus actuator] fix sbus actuator (#3511)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-07-29 13:27:07 +02:00
NoahWe e46c1e74b5 [uavcan] memory offset can lines (#3508)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* add memory offset

* try Fabien's changes

* convert last hardcoded can1 and remove test

* initialize can frame to zero
2025-07-28 17:50:47 +02:00
Fabien-B 66ba4c9918 [UART] Fix edge case where end of message match end of buffer (#3509)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Docker update / build_docker_image (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-07-25 10:03:55 +02:00
Gautier Hattenberger fb90ba29b1 [board] fix config of RTC for tawaki boards (#3506)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
The RTC should not be activated by default, it is done if needed by
modules that need it (e.g. sdlog).
Currently, it is not possible to start a tawaki without the logger
activated as RTC is activated but source not correctly selected.
2025-07-23 15:11:38 +02:00
Gautier Hattenberger 27e59d9db5 [guided] support full ref update in guided mode (#3502)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
New message can set position, speed, acceleration and heading setpoint
for an accurate trajectory tracking.

Also fix the update of ref when h_ref is disabled.
2025-07-21 16:21:44 +02:00
Gautier Hattenberger c4bd14098e Update control effectiveness script (#3501)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* update control effectiveness script for new matrix format

* add a config file example for a quadcopter

- full indi
- no G2 vector
- new output format
2025-07-18 15:34:54 +02:00
Fabien-B 9c2206f6a4 [can fuelcell] use DSDL definition (#3505)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-07-16 10:18:57 +02:00
Fabien-B 63760813f5 fix imu debug (#3503)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-07-11 23:08:14 +02:00
Gautier Hattenberger 94cd1c1cf4 [fix] fix type error introduced by #3498
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
2025-07-10 21:11:02 +02:00
OpenUAS f4279c86ee Fix parameter needed left out after I2C refactor (#3500)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
2025-07-07 22:11:17 +02:00
OpenUAS 90a5f285c6 Fix warning of nested extern declaration of fn get_sys_time_float (#3499) 2025-07-07 22:07:48 +02:00
Christophe De Wagter 0d9a3a1402 Wait for shaking to take-off (#3487)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* Wait for shaking to take-off
* Update sw/airborne/modules/nav/nav_shakestart.c
* Use Shake-Start in Flightplan
* Remove disable-GPS, ahrsAligned, DSM_On/Off, Wind
* fix make tests
2025-07-07 10:15:56 +02:00
Gautier Hattenberger 6497ecf431 [fix] don't use pointer cast to switch from Vect3 to Coor structures (#3498)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
It seems to be an undefined behavior and should be avoided.
2025-07-04 16:53:50 +02:00
Gautier Hattenberger 378d7f02be [ins] cleaning of external pose INS (#3497)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
- refactor some code
- more configurable
- reduce the number of lines with values set to 0 (replaced by memset)
- fix state update (pointer cast this way is undefined behavior)
2025-07-04 11:26:52 +02:00
Christophe De Wagter 834a420e9c Current compensation code is removed so these defines don't do anything anymore. (#3496)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
2025-07-03 22:43:58 +02:00
NoahWe 8511252b9b [rotwing] TU Delft new and repaired airframes (#3450)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* rotwing airframe files v3i-k and conf
update repaired rotwing drones v3d an v3e
turn calc asml baro to true for all rotwing airframes

* remove old magneto calib v3d and v3e

* v3e flown in VB

* update imu filter v3i and v3j

turn off highspeed logging imu

calib all accelero on v3j

add all 3 imu filters v3j

* v3d all imu calibrations

v3d magneto calib

* turn off pfc debug, rotwing put air_data defines in common airframe file

* add magneto rotation for i,j,d

* merge with master

* rotwing airframe files v3i-k and conf
update repaired rotwing drones v3d an v3e
turn calc asml baro to true for all rotwing airframes

* try cube imu 1 on v3d

* pull some things from v3b

* small change in rotwing liftd eff scheduling

* re-do v3j magneto calibration

* v3e magneto rotation

* fix consistency of defines

* revert changes eff scheduling

* make compatible with rebase
2025-07-03 17:47:08 +02:00
NoahWe 03c2547a34 [rotwing] make setup for demo's simpler (#3475)
* rotwing demo module and remove rotwing effectiveness RC switch

* fix small mistake

* fix small logic error

* fix RC switch range

* make skew values customizable

* small cleanup

* remove rotwing_demo module and replace by flight plan WIP

* rotwing move some settings back to individual airframes

* some changes

* choose a different ac id for demo drone
2025-07-03 17:15:09 +02:00
NoahWe 0c60967b3b Small fix for airspeed consistency checks (#3494)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* fix warning snprintf for AP and add check for norm in circfit

* make norm cutoff configurable

* Iteration counter overrule fix + different name for forloops and iterations

* insert missing comma

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2025-07-02 16:21:47 +02:00
NoahWe b4ed21ae1e [imu] fix some bugs introduced with imu float refactor (#3495)
* imu cube fix too many inputs for set defaults

* fix signs, replace FloatVect3 by FloatRates for gyros

* fix nps
2025-07-02 13:45:50 +02:00
Christophe De Wagter 8a226b2ce3 register periodic messages with 16 bit ID - e.g. Mavlink (#3482) 2025-07-02 10:13:14 +02:00
NoahWe 07558af7a2 Airspeed consistency check with onboard wind estimation (#3478)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* initial commit airspeed consistency check module
* small edit
* address comments
* use INFO_MSG for airspeed consistency module
2025-07-01 10:07:35 +02:00
Christophe De Wagter b7aad07a04 Activate barometric altitude in fixedwing Disco (#3480)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* Activate barometric altitude in fixedwing Disco

* Define not in NPS

* Replaced board by sensor driver...

* Fix with drone

* MAG Feedback in AHRS_DSM_FLOAT tested extensively.
2025-06-27 18:11:54 +02:00
Gautier Hattenberger b91239f7b5 [uart] use buffer write function for ChibiOS uart driver (#3491)
This way is about 10 times faster than using a for loop with single byte put function.
2025-06-27 11:39:03 +02:00
Christophe De Wagter 06c0b2f4ed Segmentation Fault: NULL->llh (#3484) 2025-06-26 09:14:16 +02:00
Gautier Hattenberger c1203b04e8 [pprzlink] update pprzlink for the latest changes and corrections (#3489) 2025-06-26 09:02:21 +02:00
Fabien-B 8190003f56 [tawakiV2] Fix I2C configuration (#3490)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-06-25 17:14:48 +02:00
Fabien-B 4df4c8436b Imu scale float (#3477)
* [imu] Use floats for scaling

* [imu] default scales float

* [imu] update comments

* Fix print function

* [imu] fix calibration

* [imu] calibration in float

* [imu] remove old calibration generation.
compilation error if IMU_IMU_ACCEL_CALIB is defined.

* remove static operations

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>

* clarify scales

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2025-06-25 13:27:53 +02:00
Christophe De Wagter 993198a418 Disable power-down interupt in SD-logger code (#3481) 2025-06-25 12:37:49 +02:00
Christophe De Wagter e34b42cd7f Fixedwing updates: Calibrate MAG, replay SD-log, Set WP (#3486) 2025-06-25 12:36:48 +02:00
Gautier Hattenberger 4b6c185516 [hybrid] add basic support for Heewing T1 Ranger VTOL (#3464)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
Docker update / build_docker_image (push) Has been cancelled
The Ranger T1 is a tilt-rotor hybrid plane. As a first basic approach,
two separated controls are used for hovering (INDI) and forward flight
(PID). The mixing is done by a dedicated module and the autopilot is
customized to support the specific modes.
A simple PID controller is added to the rotorcraft firmware as it is not
possible to directly reuse the one from fixedwing firmware.
In a future work, a full INDI version might be used, but this approach
can still serves as an example of customized autopilot.
A simulation model for JSBSim is also provided.
2025-06-24 15:02:36 +02:00
Fabien-B 982c6947a3 Threads I2C and SPI (#3471)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* [threads] Add binary semaphore timeout wait.

* [i2c] Update blocking functions to be RTOS aware.

* [SHT25] Refactor SHT25 driver as threaded I2C example.

* [spi] Update blocking function to be RTOS aware.

* [AMT22] add AMT22 driver using SPI blocking mode.

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-06-23 20:08:33 +02:00
Fabien-B 486ae432e1 [uavcan] Use CAN abstraction (#3440)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* [CAN] timestamp in us, and fix typo

* [uavcan] Use CAN abstraction

* [CAN] Add missing can2.

* [WIP] CAN error handling

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-06-23 15:02:17 +02:00