39 Commits

Author SHA1 Message Date
Oleg Kalachev
149c62568f 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
2025-02-17 15:51:58 +03:00
Oleg Kalachev
70f5186c1b Use double for storing time instead of float
Float precision may be not enough after some time of operating
2025-01-12 19:58:36 +03:00
Oleg Kalachev
d4e04c46cd Add time command to cli 2025-01-12 19:50:00 +03:00
Oleg Kalachev
48d21a911f Add missing const qualifiers 2025-01-12 19:46:50 +03:00
Oleg Kalachev
821e6b105e Make channels definition to rc.ino
It's also planned to parametrize them later
2025-01-10 09:37:48 +03:00
Oleg Kalachev
568f9dd5b1 Minor code improvements 2025-01-10 08:59:09 +03:00
Oleg Kalachev
698cc3d9b8 Global variables cleanups
Remove unused PID objects for cli
Move loopRate to time.ino
2025-01-10 07:10:30 +03:00
Oleg Kalachev
404ceed851 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:14:18 +03:00
Oleg Kalachev
ae349fb73c Implement parameters subsystem
* Unified parameters storage.
* Store parameters in flash on the hardware.
* Store parameters in text file in simulation.
* Work with parameters in command line.
* Support parameters in MAVLink for working with parameters in QGC.
2024-12-23 13:00:02 +03:00
Oleg Kalachev
b6286a50b2 Minor change 2024-12-23 02:01:55 +03:00
Oleg Kalachev
f06a9301df Add notice on removing props in motor test commands in help 2024-12-23 01:14:05 +03:00
Oleg Kalachev
f54da5bf42 Add CLI command for rebooting the drone 2024-12-20 20:59:59 +03:00
Oleg Kalachev
ea141f851f Use 'loop rate' term instead of misleading 'loop frequency' 2024-12-04 07:00:00 +03:00
Oleg Kalachev
a7b69f99d0 Fix non-working motor control commands 2024-11-24 00:17:47 +03:00
Oleg Kalachev
b015c15a7e Remove non-working fullmot command 2024-11-24 00:10:37 +03:00
Oleg Kalachev
ad2c64625c Print the IMU information in imu command 2024-10-31 10:24:00 +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
d095b81d7e Print out loop frequency on imu command 2024-04-02 22:28:02 +03:00
Oleg Kalachev
28a6bf2230 Add info about motors testing commands to intro message 2024-03-30 18:23:42 +03:00
Oleg Kalachev
ed6d09061b Rename RC_CHANNEL_AUX to RC_CHANNEL_ARMED 2024-01-19 05:19:41 +03:00
Oleg Kalachev
2d365dcffe Minor fixes 2024-01-19 05:14:12 +03:00
Oleg Kalachev
f520b57abe Implement RC calibration, common for the real drone and the simulation 2024-01-02 11:54:09 +03:00
Oleg Kalachev
d2296fea76 Change C++ code style: put curly brace on the same line 2023-12-29 18:56:25 +03:00
Oleg Kalachev
fde9c1cf36 Minor changes and cleanups 2023-12-19 05:25:57 +03:00
Oleg Kalachev
860db237b7 Add reset command to cli 2023-12-13 07:48:23 +03:00
Oleg Kalachev
94b483cda6 Transfer fullMotorTest function to motors.ino 2023-12-03 20:43:55 +03:00
Oleg Kalachev
dbd413c234 Minor code cleanups and fixes 2023-11-12 10:51:56 +03:00
Oleg Kalachev
6dae4abaa2 Print low pass filters parameters and current mode in cli 2023-11-11 06:21:06 +03:00
Oleg Kalachev
39875cafb9 Remove non-effective statics 2023-05-31 20:12:45 +03:00
Oleg Kalachev
f84d1e95dd More cleanups 2023-05-26 16:46:22 +03:00
Oleg Kalachev
c1aa0d9869 Store current time in float variable 2023-05-26 16:23:30 +03:00
Oleg Kalachev
c5323f5723 Add accel calibration command 2023-05-26 16:21:54 +03:00
Oleg Kalachev
d6cca7dcf7 Some unification of the headers 2023-05-24 11:26:30 +03:00
Oleg Kalachev
17edd0ee00 Show imu data in cli 2023-05-24 11:05:11 +03:00
Oleg Kalachev
82276ddb92 Cleanups 2023-05-24 10:56:59 +03:00
Oleg Kalachev
87c75842f9 Change .hpp to .h 2023-05-24 10:40:12 +03:00
Oleg Kalachev
3a05403068 Use printf in cli 2023-05-23 11:52:03 +03:00
Oleg Kalachev
4dc8118c95 Add help/motd command 2023-04-05 02:37:30 +03:00
Oleg Kalachev
e039055c8e Initial commit 2023-03-26 10:23:30 +03:00