Oleg Kalachev
d61948ec9c
Rename printIMUCal to printIMUCalibration for consistency with rc
2025-07-15 01:25:10 +03:00
Oleg Kalachev
0c87d4d634
Port changes from commit 52819e4
2025-07-15 01:22:18 +03:00
Oleg Kalachev
114d2305de
Make wi-fi code more consistent between the firmware and simulation
2025-07-10 05:54:52 +03:00
Oleg Kalachev
e7a06b9413
Minor code simplifications
2025-04-29 23:01:59 +03:00
Oleg Kalachev
0a7ed1039f
Rename flu to frd function to match the code style
2025-02-28 23:39:03 +03:00
Oleg Kalachev
51fa5a6cac
Simplify and fix code
2025-02-28 23:07:37 +03:00
Oleg Kalachev
89c1ada005
Remove command parsing to simplify the code
2025-02-28 23:02:02 +03:00
Oleg Kalachev
6058e8ecab
Refactor CLI submodule
...
Move command parsing to doCommand
Parse command with splitString instead of stringToken
Trim commands
Move cliTestMotor to the bottom
Rename parseInput to handleInput, which is more clear
Move motor test function to motors.ino
Remove parameters table functionality to simplify the code
2025-02-28 22:49:37 +03:00
Oleg Kalachev
67e4a95697
Minor fix in joystick support for simulation
...
Don't use channels variable as it breaks code isolation
2025-02-28 22:30:29 +03:00
Zatupitel
2b15812483
Fix working on ESP32-S3 ( #8 )
...
Disable brown-out detector in a more correct way: clear only enable bit instead of clearing the whole register.
---------
Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2025-02-28 22:28:10 +03:00
Oleg Kalachev
d60968ea25
Remove RC_CHANNELS macro
2025-02-28 22:19:52 +03:00
Oleg Kalachev
03c6576b72
Move controlsTime variable to rc.ino
2025-01-11 01:17:11 +03:00
Oleg Kalachev
5530ad2981
Move loopRate to time.ino
2025-01-10 07:15:15 +03:00
Oleg Kalachev
f9e1802bc0
Make util module header instead of .ino-file
2025-01-10 07:02:00 +03:00
Oleg Kalachev
ddc46c049f
Make ONE_G definition const and move to utils.ino
2025-01-09 11:31:33 +03:00
Oleg Kalachev
8c9bff0813
Make motor indexes definition const int and move them to motors.ino
...
Remove motor indexes definitions from flix.ino
Add motors.ino to simulation code and implement required mocks
2025-01-09 11:17:44 +03:00
Oleg Kalachev
f7434921e5
Fix joystick work in simulation
...
Logic was broken as joystickGet never got called
2024-12-27 15:38:44 +03:00
Oleg Kalachev
ce67baae89
Minor fixes
2024-12-25 02:18:52 +03:00
Oleg Kalachev
ad9259810f
Fix SBUS simulation logic
...
Don't consider zero values from not connected joystick
2024-12-25 02:17:58 +03:00
Oleg Kalachev
c43624734d
Move ONE_G definition to flix.ino
2024-12-25 02:17:50 +03:00
Oleg Kalachev
292b10197f
Improve logic of passing channels data in simulated SBUS
...
Return the data the same way as on the real drone without touching channels global vairable
2024-12-25 02:17:43 +03:00
Oleg Kalachev
ea141f851f
Use 'loop rate' term instead of misleading 'loop frequency'
2024-12-04 07:00:00 +03:00
Oleg Kalachev
b015c15a7e
Remove non-working fullmot command
2024-11-24 00:10:37 +03:00
Oleg Kalachev
ec832d4e37
Implement RC fail-safe
2024-11-04 11:51:17 +03:00
Oleg Kalachev
2fdad7bdb6
Remove LED horizontality signalization
...
It's better to control the attitude estimation using QGC
2024-11-03 17:41:13 +03:00
Oleg Kalachev
c5c889679b
Fix simulation build
2024-10-31 19:27:27 +03:00
Oleg Kalachev
378db51de9
Get rid of simulator build warnings
2024-10-24 03:50:03 +03:00
Oleg Kalachev
ba5ac30136
Adjust the default camera position in the simulator
2024-10-24 03:48:31 +03:00
Oleg Kalachev
13341602f0
Fix Gazebo stl model orientation
2024-10-23 14:30:25 +03:00
Oleg Kalachev
0397b3a736
Move the visual part of the gazebo model to the bottom of the file
2024-10-23 09:42:17 +03:00
Oleg Kalachev
c41c96a96d
Update visual of the Gazebo model to the new version
...
Use STL instead of DAE, make props separated visuals
2024-10-23 09:41:16 +03:00
Oleg Kalachev
a94687bd56
Keep the t variable monotonic in the simulation
...
Otherwise it causes stopping sending MAVLink and other bugs
2024-10-23 09:36:54 +03:00
Oleg Kalachev
abcc9b96de
Use FLU as the main coordinate system instead of FRD
...
Corresponding to the IMU orientation in the new version
2024-10-23 09:30:49 +03:00
Oleg Kalachev
f46460e53d
Make RC_CHANNELS=16 corresponding the number of SBUS channels
2024-10-23 09:28:09 +03:00
Oleg Kalachev
23f3295439
Remove ESC support and add MOSFET support in motors code
...
The new version uses MOSFETs
2024-10-23 09:27:54 +03:00
Oleg Kalachev
b0b6eb9a97
Minor code cleanups and clarifications
2024-10-23 09:25:39 +03:00
Oleg Kalachev
e993dde355
Update ESP32 Arduino Core to v3.0.3
2024-07-25 02:45:59 +03:00
Oleg Kalachev
627233f862
Minor updates
2024-07-25 02:44:47 +03:00
Oleg Kalachev
1119c77cca
Remove unneeded abs for motors thrust in simulation
2024-05-24 14:47:26 +03:00
Oleg Kalachev
ad6bc02643
Minor fixes and changes
2024-05-21 10:49:57 +03:00
Oleg Kalachev
41a9a95747
Transfer gyro low pass filter to estimate.ino
...
Separate raw gyro data and filtered rates to different variables
2024-04-20 14:52:01 +03:00
Oleg Kalachev
fff7262d1b
Minor fix for SBUS dummy for simulator
2024-03-23 09:20:08 +03:00
Oleg Kalachev
646fa46f6b
Use FlixPeriph library for SBUS
2024-03-17 02:29:37 +03:00
Oleg Kalachev
e0db3bee38
Read mode stick using axis read in simulation
2024-02-16 01:13:32 +03:00
Oleg Kalachev
bf803cf345
Display MAVLink remote port in simulator
2024-02-10 14:12:09 +03:00
Oleg Kalachev
ba6e63b50b
Correctly set output parameters of simulated SBUS::read, minor name fix
2024-02-06 21:02:20 +03:00
Oleg Kalachev
f718af7f0e
Support MAVLink usage in simulation
2024-01-31 12:10:18 +03:00
Oleg Kalachev
4850b95029
Add a readme to gazebo directory
2024-01-31 12:07:37 +03:00
Oleg Kalachev
6b52ad562b
Minor const clarification
2024-01-31 12:00:23 +03:00
Oleg Kalachev
69cfc9e5fa
Utilize internal ESP32 UART invertor for SBUS
2024-01-26 13:46:13 +03:00