Title / Description
Code // // JCanLiebherr.m // // Created by Bailey Yu on 2012-07-31. // Copyright (c) 2012 Leica GeoSystems. All rights reserved. // #include <JMineOPS/JMineOPS.h> #include <JCan/JCan.h> @interface JCanLiebherr : CanInterface { } @end @implementation JCanLiebherr - (id)initWithProperties:(NSDictionary *)aProps { [super initWithProperties:aProps]; canMask = 0; return self; } - (void)start { [super start]; [super propAlarmTimeout:10]; } - (void)receiveData:(NSData *)aData forCanId:(u_int)aCanId { [JAMS log:@"lieb" format:@"receive(0x%x), data: %@", aCanId, aData]; NSArray *sensors = [self sensorsForIdentity:[NSNumber numberWithInt:aCanId]]; [self updateSensors:sensors withPacket:aData]; } @end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code