[Ovmsdev] How to remove temperatures from app?
Mark Webb-Johnson
mark at webb-johnson.net
Thu Oct 24 09:49:18 HKT 2013
Matt,
> In the iMiev, the CAN bus stops when the car is parked and not charging, which means that the temperatures go stale.
> I want to flag this to the app, but I'm not sure how to do that. I assumed that setting them back to their "default" state would return the app to displaying "-"
Use:
ovms.{h,c}:
signed char car_stale_ambient; // 0 = Ambient temperature is stale
signed char car_stale_temps; // 0 = Powertrain temperatures are stale
Most common method is that every time you receive a CAN bus message with the temps (motor, pem, battery), set car_stale_temps=60 (or car_stale_ambient=60 for ambient).
Then, in your one-second-ticker function, just:
if (car_stale_ambient>0) car_stale_ambient--;
if (car_stale_temps>0) car_stale_temps--;
That will automatically signal them as stale after 60 seconds of no update.
> P.S. Now we have iMiev support (although a bit beta) and are about to get Leaf support - when do we get these car picture in the app? ;-)
Can you hold a few weeks for this? I am working on the Apps to re-work how we do the vehicle images. They are just too large (13MB+ already!), so I am working on a better way of handling the multiple colours and making it easier to add them to the Apps. Once I have this working, I'll let you know what format we need the images in.
Regards, Mark.
On 23 Oct, 2013, at 11:48 pm, Matt Beard <matt at beard.tv> wrote:
> In the iMiev, the CAN bus stops when the car is parked and not charging, which means that the temperatures go stale.
>
> I want to flag this to the app, but I'm not sure how to do that. I assumed that setting them back to their "default" state would return the app to displaying "-"
>
> This doesn't seem to work. Should it?
>
> Matt Beard
>
>
> P.S. Now we have iMiev support (although a bit beta) and are about to get Leaf support - when do we get these car picture in the app? ;-)
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20131024/88a7b8bc/attachment.htm>
More information about the OvmsDev
mailing list