Battery beep

More
05 Jan 2013 17:47 #4704 by domcars0
Battery beep was created by domcars0
PB as you are here .. Have you an idea of how often firmware enter the main.c::BATTERY_Check() ? I'm playing with code to have multiple bip when TX battery is low.

Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers :angry:

Please Log in or Create an account to join the conversation.

More
05 Jan 2013 18:02 #4705 by PhracturedBlue
Replied by PhracturedBlue on topic Battery beep
It is called every 100msec in the LOW_PRIORITY section.
The other call only executes on powerdown.

Also, Please create new topics for new ideas. I don't really like having threads polluted with unrelated topics. It makes search very hard.

Please Log in or Create an account to join the conversation.

More
05 Jan 2013 18:14 #4706 by domcars0
Replied by domcars0 on topic Battery beep
OK thank you and sorry for posted in bad topic :(

Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers :angry:

Please Log in or Create an account to join the conversation.

More
05 Jan 2013 18:15 #4707 by PhracturedBlue
Replied by PhracturedBlue on topic Battery beep
take a look at the timer code. that beeps every several seconds after going negative. it'll give you an idea how to make the battery beep continue.

Please Log in or Create an account to join the conversation.

More
05 Jan 2013 20:01 - 06 Jan 2013 17:30 #4709 by domcars0
Replied by domcars0 on topic Battery beep
I've made code modification in the main.c file...
Now Battery alarm is beeping every 5 secunds.

It works on my Devo10 and in the devo8 emulator.

bitbucket.org/destructionBlack/deviationdevo10/commits/all

Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers :angry:
Last edit: 06 Jan 2013 17:30 by domcars0.

Please Log in or Create an account to join the conversation.

More
06 Jan 2013 03:51 #4719 by PhracturedBlue
Replied by PhracturedBlue on topic Battery beep
I would just remove the use of 'warned' for bit 0x02 altogether, you don't need it.
I'd probably also use CLOCK_getms() instead of a counter, so it is more obvious exactly how frequently to warn.

Please Log in or Create an account to join the conversation.

More
06 Jan 2013 09:16 - 06 Jan 2013 09:29 #4724 by domcars0
Replied by domcars0 on topic Battery beep
Hi PB,
I kept the warned 0x02 bit in case of hysteresis issue ( in the worst case we can have a beep every 200ms :S ) , but for sure you can remove it ...
We can also use the CLOCK_getms() but I tought that use of a counter variable is much less power hungry (no function call) and beep interval is not critical at all.

Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers :angry:
Last edit: 06 Jan 2013 09:29 by domcars0.

Please Log in or Create an account to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum