Commit Graph

59 Commits

Author SHA1 Message Date
Stedd a9bacfc6e8 Fixed pitch rate axis after bugfix in GY85 library 2023-10-22 23:40:22 +02:00
Stedd eb9700a84f Merge branch 'SketchStructure' 2023-10-22 14:30:30 +02:00
Stedd 0aa6e9c5ad Forgot to call PackUdpData after refactor 2023-10-22 14:30:14 +02:00
Stedd 88676bb66e Moved variables to main file to prevent scope errors 2023-10-22 14:15:20 +02:00
Stedd 42d8d8b70a Updated Readme 2023-10-22 14:10:57 +02:00
Stedd 8df11065df Cleanup 2023-10-22 14:10:44 +02:00
Stedd 865eddb725 Moved UdpPacking out of plot() 2023-10-22 14:10:34 +02:00
Stedd 0c5b26304f Renamed plot method 2023-10-22 14:09:54 +02:00
Stedd 871f1937a2 Moved data 2023-10-22 13:28:57 +02:00
Stedd 22363ea4e3 Added sketch project file 2023-10-22 13:28:28 +02:00
Stedd e9e6e910e4 Added Secrets 2023-10-22 13:27:38 +02:00
Stedd a0ec9092b0 Merge branch 'UDP' 2023-10-22 12:07:46 +02:00
Stedd 212597e5e6 Cleanup 2023-10-22 12:06:14 +02:00
Stedd 6e266b801a Updated dependencies in Readme 2023-10-22 12:05:59 +02:00
Stedd 800fb1876e Fixed bug in motor windup calculation 2023-10-22 12:05:40 +02:00
Stedd 26955c1c12 Formatting 2023-10-22 02:09:46 +02:00
Stedd 1fa5f97b25 Moved velocity calculations out of balancing loop so they always can be monitored 2023-10-22 02:09:38 +02:00
Stedd 3343c2ac98 Added some more variables to UDP 2023-10-22 02:08:19 +02:00
Stedd 141a03cb84 Bot can balance by itself again 2023-10-22 02:07:22 +02:00
Stedd 3a680f84c8 Fixed a bug in LeftMotorAngular velocity calculation 2023-10-22 02:06:40 +02:00
Stedd 6a03848435 Packing data for UDP telegram
Naive approach, but it works for now
2023-10-22 01:18:13 +02:00
Stedd 7ab1ee525d Watchdog in the first Byte 2023-10-21 19:37:38 +02:00
Stedd 0991343a55 UDP Packets appear in wireshark and UDPlistener 2023-10-21 19:19:43 +02:00
Stedd c49c511d75 First UDP test
Copied code from UDP example
Added calls in setup and loop
Added Wifi config
2023-10-21 18:03:08 +02:00
Stedd b8e6e120d4 Balance Controller kind of works
Not sure why the gains dont work anymore.
Anyways, continuing with UDP publishing.
2023-10-21 17:51:45 +02:00
Stedd 62e07ce32a Balance controller is not working 2023-10-21 15:55:08 +02:00
Stedd c58b413392 Added board manager and libraries versions to Readme
Had a lot of trouble compiling the project after updating packages and
libraries after launching the project after 4 years.

Hopefully having a log of used libraries makes this task easier in the
future
2023-10-21 15:09:12 +02:00
Stedd b854a09de0 Changed index of Velocity matrix
Compiler gave an error on "index out of bounds", have to test if turn
controller is still working after this change.

This is the first time i see this error,which leaves me a bit confused
as of i see this now.
2023-10-21 15:07:32 +02:00
Stedd 61684e11a6 Code compiles and runs
Getting correct pitch angle in SerialPlotter
2023-10-21 15:00:22 +02:00
Stedd 94c0d8621b Renamed Main and placed scripts in root folder 2023-10-21 13:25:29 +02:00
Stedd 42034ab9e8 this is not working 2023-10-19 20:43:01 +02:00
Stedd 72716f2abd quicksave 2023-10-19 00:26:26 +02:00
Stedd b5a53fa8c9 Cleanup 2023-10-18 22:16:53 +02:00
Stedd 23c84d2e41 Added PS3 controller 2023-10-18 21:48:18 +02:00
Stedd 248cd4dc68 Changed name 2019-12-24 15:58:22 +01:00
Stedd ec12a38ec6 Anti windup 2019-12-24 15:53:26 +01:00
Stedd 7dffe5208d Cleanup and tuning 2019-12-24 01:21:12 +01:00
Stedd 9c363bbe3c Added remote control 2019-12-23 21:00:06 +01:00
Stedd 050c1156f2 Moved interrupt to separate function 2019-12-23 14:13:37 +01:00
Stedd 1f1afebd98 Moved plots to separate function.
Cleanup
2019-12-23 14:04:17 +01:00
Stedd 40ae950bb1 Turn controller
Moved encoder readers and inverse kinematic to execute first in motor
function.
Implemented turn controller.
Cleaned up speed command variables.
2019-12-23 03:47:50 +01:00
Stedd 54d2701460 Complementary filter bug 2019-12-23 02:52:37 +01:00
Stedd 4129c92d15 Merge remote-tracking branch 'refs/remotes/origin/Linear-algebra-tests' 2019-12-22 22:35:07 +01:00
Stedd 0836937e3f Inverse kinematics of differential drive working 2019-12-22 22:34:02 +01:00
Stedd c546c757c9 IMU cleanup 2019-12-22 15:48:26 +01:00
Stedd 88bc161a84 Revert "Revert "asdf""
This reverts commit e317f3616b.
2019-12-21 00:06:57 +01:00
Stedd e317f3616b Revert "asdf"
This reverts commit f1719eca0a.
2019-12-21 00:06:05 +01:00
Stedd f1719eca0a asdf 2019-12-21 00:05:11 +01:00
Stedd 91e9be84ea Both motors operating + Balance controller
Reassigned GPIO to match motors
Motor deadbands
Controller gains
Speed controller
Cascaded balance controller
2019-12-21 00:04:55 +01:00
Stedd 72c4f2d591 Functions 2019-12-20 20:03:48 +01:00