]> rtime.felk.cvut.cz Git - eurobot/public.git/commit
eb_pwr: New version of power management.
authorMichal Vokac <vokac.m@gmail.com>
Thu, 13 Oct 2011 14:19:00 +0000 (15:19 +0100)
committerMichal Vokac <vokac.m@gmail.com>
Fri, 14 Oct 2011 10:33:37 +0000 (12:33 +0200)
commitd56f9f62646e890a3619f6956e8e4090d312112e
treebb457300533c2be7635efa971c64ce68eef4cc5f
parentdbf533dbdcd1d31f69ecaeb2ad10dfa7b3dc33f6
eb_pwr: New version of power management.

- time measurement using global variable with time
Now time is measured in the same manner as in the other modules (ie. eb_vidle atc).
The code is more clear ant later improvements are easier.

- I have moved all the definitions to header files, add def.h file.
This improves clarity and readability.

- Now 5V and 3.3V power supply is switched off only when battery is in critical state.
Prevents cyclic on/off switching of all the boards in the robot.

Still this algorithm needs improvements, but now CAN communication is more reliable.
src/common/can_msg_def.h
src/eb_pwr/Makefile.omk
src/eb_pwr/def.h [new file with mode: 0644]
src/eb_pwr/main.c
src/eb_pwr/pwrstep.c
src/eb_pwr/pwrstep.h