Commit Graph

235 Commits

Author SHA1 Message Date
phillip fdd59a83e3 Reset batttery charge in coloumbs on charge completion 2025-02-16 20:44:58 +01:00
phillip 21f313af5c Fix "adc1 already in use!" log spam. 2025-02-16 19:18:20 +01:00
phillip fd1be4ffeb Improve Power State Update Task timing 2025-02-16 19:17:36 +01:00
phillip a48dd7c9dd Safeguard serial error prints 2025-02-16 13:08:25 +01:00
phillip b410338109 Improve naming 2025-02-16 12:22:23 +01:00
phillip 33c23cb4f8 Update picking of next current allowance to take more than one outstanding allowance into consideration 2025-02-16 12:19:38 +01:00
phillip 7a7139360c Fix mistakes 2025-02-16 02:04:02 +01:00
phillip 5efa7a5efd Rename Power.* to PowerManager.* for clarity 2025-02-16 01:10:33 +01:00
phillip ff11ad95b0 Merge commit 'bb338d31be6bd5d71db175c6243401b71725b41d' into power_management 2025-02-15 23:36:59 +01:00
phillip ec457d31d9 Add test case for modeling functions 2025-02-15 22:42:04 +01:00
phillip 7ed58afea0 Fix charge calculation 2025-02-15 22:41:34 +01:00
phillip ca37aa972b Add test case for modeling functions 2025-02-15 22:07:55 +01:00
phillip 62d4c6bdb0 Fix oversights in modeling functions 2025-02-15 22:07:33 +01:00
phillip ff80ebe4db Add power Modeling functions to all components 2025-02-15 21:42:41 +01:00
phillip 5cb25a412a Increase voltage moving average filter window from 10 values to 20 values 2025-02-14 21:19:36 +01:00
phillip 83674657b8 More processing of charge state 2025-02-14 21:09:04 +01:00
phillip e6c7454e5b Replace discharge curve with measured one. 2025-02-14 21:08:37 +01:00
phillip ef8a757772 Add power test cases 2025-02-14 21:08:03 +01:00
phillip 2b57f300f2 Fix VUSB_SENS input mode. 2025-02-14 21:07:05 +01:00
phillip f753fdcc9b Add user-facing battery current calculation and fix logging 2025-02-14 13:46:50 +01:00
phillip 264e37c983 Add RAII-wrapped Mutexes for access to state-tracking variables 2025-02-14 12:00:31 +01:00
phillip 0d6977e148 Improve power denial handling 2025-02-13 22:57:55 +01:00
phillip 35c11f42e2 Minor fixes 2025-02-13 22:57:23 +01:00
phillip c7e1af334f Update test case 2025-02-13 22:56:10 +01:00
phillip 598ac75e32 Change approach of notifying of power problem to be more beginner friendly 2025-02-13 21:34:27 +01:00
phillip 4c13eb593e Remove left over debug prints 2025-02-13 21:30:20 +01:00
phillip 51380ac692 Update Power Management Test 2025-02-13 21:29:53 +01:00
phillip 115b0e0679 Add power state initialisation 2025-02-13 21:12:40 +01:00
phillip b0068333c8 Fixes 2025-02-13 00:54:03 +01:00
phillip c130026f00 Handle denials of power appropriately 2025-02-12 22:59:13 +01:00
phillip 21f7d9ae8a Behaviour clarification 2025-02-12 22:08:18 +01:00
phillip 39daae8cc3 Fix Include 2025-02-12 22:02:21 +01:00
phillip 1730ea958c Fix Typo 2025-02-12 21:56:55 +01:00
phillip 7c349a3289 Integrate IMU into Power Management 2025-02-12 21:56:40 +01:00
phillip a26acf4a92 Integrate Motors into Power Management 2025-02-12 21:50:29 +01:00
phillip dfa778024b Integrate OLED display in Power management 2025-02-12 21:38:05 +01:00
phillip 5407543658 Integrate color sensor, infrared LEDs and phototransistors into Power Management 2025-02-12 21:26:29 +01:00
phillip e5ff1e7610 Group non-independent sensors 2025-02-12 21:24:57 +01:00
phillip 6611fba2dc Allow release of reserved current regardless of the reservation having been granted 2025-02-12 20:39:59 +01:00
phillip 8a93e0ca93 Integrate RGB LEDs into power management 2025-02-12 18:27:48 +01:00
phillip 4bfae98f6b Integrate Communication into Power Management 2025-02-12 18:07:41 +01:00
phillip d64579eca4 Complete proxy functions in Power.h and refactor (mainly reorder) for clarity. 2025-02-12 17:42:22 +01:00
phillip 8617f420a2 Add special case for small power requests 2025-02-12 16:27:54 +01:00
phillip c63935a413 Add power modeling and scheduling based on thesis 2025-02-12 16:09:40 +01:00
phillip b44538b473 Add Power Scheduler 2025-02-11 23:33:19 +01:00
phillip 893234ed24 FIxes 2025-02-11 23:33:00 +01:00
phillip e747b9d10b Add data gathered from measurement results 2025-02-11 20:11:54 +01:00
phillip 862310bb3c Merge branch 'main' into power_management 2025-02-09 20:20:27 +01:00
phillip 8a2e27f6f7 Update test cases 2025-02-09 20:16:54 +01:00
phillip d1dd3a533f Update display test case 2025-02-05 17:10:20 +01:00