Module: RubyFit::MessageConstants
- Defined in:
- lib/rubyfit/message_constants.rb
Constant Summary collapse
- COURSE_POINT_TYPE =
{ invalid: 255, generic: 0, summit: 1, valley: 2, water: 3, food: 4, danger: 5, left: 6, right: 7, straight: 8, first_aid: 9, fourth_category: 10, third_category: 11, second_category: 12, first_category: 13, hors_category: 14, sprint: 15, left_fork: 16, right_fork: 17, middle_fork: 18, slight_left: 19, sharp_left: 20, slight_right: 21, sharp_right: 22, u_turn: 23, segment_start: 24, segment_end: 25 }.freeze
- EVENT_TYPE =
{ start: 0, stop: 1, consecutive_depreciated: 2, marker: 3, stop_all: 4, begin_depreciated: 5, end_depreciated: 6, end_all_depreciated: 7, stop_disable: 8, stop_disable_all: 9, }.freeze
- EVENT =
{ timer: 0, # Group 0. Start / stop_all workout: 3, # start / stop workout_step: 4, # Start at beginning of workout. Stop at end of each step. power_down: 5, # stop_all group 0 power_up: 6, # stop_all group 0 off_course: 7, # start / stop group 0 session: 8, # Stop at end of each session. lap: 9, # Stop at end of each lap. course_point: 10, # marker battery: 11, # marker virtual_partner_pace: 12, # Group 1. Start at beginning of activity if VP enabled, when VP pace is changed during activity or VP enabled mid activity. stop_disable when VP disabled. hr_high_alert: 13, # Group 0. Start / stop when in alert condition. hr_low_alert: 14, # Group 0. Start / stop when in alert condition. speed_high_alert: 15, # Group 0. Start / stop when in alert condition. speed_low_alert: 16, # Group 0. Start / stop when in alert condition. cad_high_alert: 17, # Group 0. Start / stop when in alert condition. cad_low_alert: 18, # Group 0. Start / stop when in alert condition. power_high_alert: 19, # Group 0. Start / stop when in alert condition. power_low_alert: 20, # Group 0. Start / stop when in alert condition. recovery_hr: 21, # marker battery_low: 22, # marker time_duration_alert: 23, # Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled. distance_duration_alert: 24, # Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled. calorie_duration_alert: 25, # Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled. activity: 26, # Group 1.. Stop at end of activity. fitness_equipment: 27, # marker length: 28, # Stop at end of each length. user_marker: 32, # marker sport_point: 33, # marker calibration: 36, # start/stop/marker front_gear_change: 42, # marker rear_gear_change: 43, # marker rider_position_change: 44, # marker elev_high_alert: 45, # Group 0. Start / stop when in alert condition. elev_low_alert: 46, # Group 0. Start / stop when in alert condition. comm_timeout: 47, # marker }.freeze