Added stylesheet, demo docs etc.
This commit is contained in:
BIN
doc/BF_BikeInformation.docx
Normal file
BIN
doc/BF_BikeInformation.docx
Normal file
Binary file not shown.
BIN
doc/BI_ConsoleInformation.docx
Normal file
BIN
doc/BI_ConsoleInformation.docx
Normal file
Binary file not shown.
136
doc/console_full.xml
Normal file
136
doc/console_full.xml
Normal file
@@ -0,0 +1,136 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<Bike name='franken-wheeler'>
|
||||
<Device Type="Console">
|
||||
<!-- müssen wir doppel werte hier reinschreiben? -->
|
||||
<Value ID='Cons_Stat_Dist_Hi' Default='' Current='' Enabled='true' UnitType='mm' Factor='0.1' />
|
||||
<Value ID='Cons_Stat_Dist_Lo' Default='' Current='' Enabled='true' UnitType='mm'/>
|
||||
<Value ID='Cons_Stat_Avgspeed_Hi' Default='' Current='' Enabled='true' UnitType='mm' Factor='0.1' />
|
||||
<Value ID='Cons_Stat_Avgspeed_Lo' Default='' Current='' Enabled='true' UnitType='mm'/>
|
||||
|
||||
<Value ID='Cons_Stat_Odo_Hihi' Default='' Current='' Enabled='true' Factor='0.1' />
|
||||
<Value ID='Cons_Stat_Odo_Hilo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Stat_Odomoter_Lohi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Stat_Odo_Lolo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Preference_Nip_Hihi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Nip_Hilo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Nip_Lohi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Nip_Lolo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Calibrated' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Stat_Chrono_Second' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Stat_Chrono_Minute' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Stat_Chrono_Hour' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Lcd_Contrast' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Location' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Year' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Month' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Day' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Sn_Pn_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Pn_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Item_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Item_Lo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Gauge_Joint' Default='' Current='' Enabled='true' Min='0' Max='11' />
|
||||
<Value ID='Cons_Throttle_Min_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Min_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Max_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Max_Lo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Preference_Light_On_At_Start' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Geometry_Circ_Hi' Default='' Current='' Enabled='true' UnitType='mm' />
|
||||
<Value ID='Cons_Geometry_Circ_Lo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Maxspeed_Flag' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Maxspeed_Hi' Default='' Current='' Enabled='true' UnitType='kmh' Factor='0.1'/>
|
||||
<Value ID='Cons_Assist_Maxspeed_Lo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Throttle_Maxspeed_Flag' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Maxspeed_Hi' Default='' Current='' Enabled='true' UnitType='kmh' Factor='0.1'/>
|
||||
<Value ID='Cons_Throttle_Maxspeed_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Minspeed_Flag' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Minspeed' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Brake_Level' Default='' Current='' Enabled='true' Min='0' Max='64' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Preference_Trip_To_Empty_Flag' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Display_Units' Default='1' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Enabled_Onstrain' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Brake_Flag' Default='1' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Brake_Polarity' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Gauge_Filter' Default='' Current='' Enabled='true' Min='0' Max='8' />
|
||||
|
||||
<Value ID='Cons_Rev_Sw' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Gauge_Gain' Default='' Current='' Enabled='true' Min='0.1' Max='4.0' Factor='0.1' />
|
||||
<Value ID='Cons_Assist_Gain_A' Default='' Current='' Enabled='true' Min='0.1' Max='4.0' Factor='0.1' />
|
||||
<Value ID='Cons_Assist_Gain_B' Default='' Current='' Enabled='true' Min='0.1' Max='25.0' Factor='0.1' />
|
||||
<Value ID='Cons_Sn_Type' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Region' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Configbit_0' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Enabled_Boost_Display' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Autoregen_Flag' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Rev_Sub' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Light_Button_Mode' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Expertmode' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Level_1' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Level_2' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Level_3' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Level_4' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Initlevel' Default='' Current='' Enabled='true' Min='0' Max='4' />
|
||||
|
||||
<Value ID='Cons_Preference_Codes_Hihi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codes_Hilo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codes_Lohi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codes_Lolo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codesrw_Hihi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codesrw_Hilo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codesrw_Lohi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Codesrw_Lolo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Oem_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Oem_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Preference_Throttle_Mode' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Assist_Speedgain' Default='' Current='' Enabled='true' Factor='0.1' />
|
||||
<Value ID='Cons_Sn_Product_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Sn_Product_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Boost_Triggerlevel' Default='' Current='' Enabled='true' Min='1.5' Max='50.0' UnitType='%' Factor='1.5625' />
|
||||
<Value ID='Cons_Preference_Flip_Side' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Testmode' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Testmode_Hw14' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Mountain_Cap' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625' />
|
||||
<Value ID='Cons_Config_Last_Mode' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Config_Last_Mode_On' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Last_Mode_Off' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Rev_Hw' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Status_Slave' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Throttle_Raw_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Raw_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Throttle_Position' Default='' Current='' Enabled='true' Factor='1.5625'/>
|
||||
|
||||
<Value ID='Cons_Assist_Level_Rekuperation_3' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Level_Rekuperation_4' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Config_Service_Timestamp_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Service_Zimestamp_Lo' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Service_Distance_Hi' Default='' Current='' Enabled='true' />
|
||||
<Value ID='Cons_Config_Service_Distance_Lo' Default='' Current='' Enabled='true' />
|
||||
|
||||
<Value ID='Cons_Assist_Level_Rekuperation_1' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
<Value ID='Cons_Assist_Level_Rekuperation_2' Default='' Current='' Enabled='true' UnitType='%' Factor='1.5625'/>
|
||||
|
||||
</Device>
|
||||
|
||||
<Device Type="Battery">
|
||||
</Device>
|
||||
<Device Type="Motor">
|
||||
</Device>
|
||||
<Device Type="Sensor">
|
||||
</Device>
|
||||
</Bike>
|
||||
95
doc/demo.txt
Normal file
95
doc/demo.txt
Normal file
@@ -0,0 +1,95 @@
|
||||
C:\syncMePlease\projects.now\all.about.bionx\all.can\bigxionflasher>BigXionFlasher.exe -s
|
||||
BigXionFlasher USB V 0.2.4 rev. 97
|
||||
(c) 2011-2013 by Thomas Koenig <info@bigxionflasher.org> - www.bigxionflasher.org
|
||||
|
||||
console already in salve mode. good!
|
||||
|
||||
|
||||
|
||||
Console information:
|
||||
hardware version ........: 15
|
||||
software version ........: 66
|
||||
assistance level ........: 0
|
||||
part number .............: 03205
|
||||
item number .............: 00745
|
||||
|
||||
max limit enabled .......: yes
|
||||
speed limit .............: 44.00 Km/h
|
||||
|
||||
min limit enabled .......: yes
|
||||
min speed limit .........: 0.50 Km/h
|
||||
|
||||
throttle limit enabled ..: yes
|
||||
throttle speed limit ....: 20.00 Km/h
|
||||
|
||||
wheel circumference .....: 2199 mm
|
||||
|
||||
mountain cap ............: 54.69%
|
||||
odo .....................: 803.60 Km
|
||||
|
||||
Battery information:
|
||||
hardware version ........: 62
|
||||
software version ........: 112
|
||||
part number .............: 05521
|
||||
item number .............: 00011
|
||||
voltage .................: 53.10V
|
||||
battery level ...........: 100.00%
|
||||
maximum voltage .........: 97.85%
|
||||
minimum voltage .........: 87.85%
|
||||
mean voltage ............: 97.85%
|
||||
resets ..................: 0
|
||||
ggjrCalib ...............: 0
|
||||
vctrlShorts .............: 0
|
||||
lmd .....................: 6.80Ah
|
||||
cell capacity ...........: 2.15Ah
|
||||
|
||||
charge time worst .......: 488
|
||||
charge time mean ........: 9
|
||||
charge cycles ...........: 76
|
||||
full charge cycles ......: 6
|
||||
power cycles ............: 257
|
||||
battery temp max ........: 73
|
||||
battery temp min ........: 239
|
||||
|
||||
charge level @ 010% : 0014
|
||||
charge level @ 020% : 0013
|
||||
charge level @ 030% : 0015
|
||||
charge level @ 040% : 0007
|
||||
charge level @ 050% : 0007
|
||||
charge level @ 060% : 0006
|
||||
charge level @ 070% : 0002
|
||||
charge level @ 080% : 0004
|
||||
charge level @ 090% : 0008
|
||||
charge level @ 100% : 0008
|
||||
total # of charges .: 0084
|
||||
|
||||
balancer enabled ...: yes
|
||||
|
||||
voltage cell #01 ...: 4.044V
|
||||
voltage cell #02 ...: 4.061V
|
||||
voltage cell #03 ...: 4.058V
|
||||
voltage cell #04 ...: 4.059V
|
||||
voltage cell #05 ...: 4.071V
|
||||
voltage cell #06 ...: 4.088V
|
||||
voltage cell #07 ...: 4.073V
|
||||
voltage cell #08 ...: 4.078V
|
||||
voltage cell #09 ...: 4.095V
|
||||
voltage cell #10 ...: 4.131V
|
||||
voltage cell #11 ...: 4.097V
|
||||
voltage cell #12 ...: 4.122V
|
||||
voltage cell #13 ...: 4.127V
|
||||
temperature pack #01: 24oC
|
||||
temperature pack #02: 24oC
|
||||
temperature pack #03: 24oC
|
||||
temperature pack #04: 24oC
|
||||
temperature pack #05: 14oC
|
||||
|
||||
Motor information:
|
||||
hardware version ........: 32
|
||||
software version ........: 102
|
||||
temperature .............: 35oC
|
||||
speed limit .............: 44 Km/h
|
||||
wheel circumference .....: 2199 mm
|
||||
|
||||
part number .............: 02283
|
||||
item number .............: 00030
|
||||
129
doc/dummy.c
Normal file
129
doc/dummy.c
Normal file
@@ -0,0 +1,129 @@
|
||||
|
||||
hwVersion = getValue(CONSOLE, CONSOLE_REF_HW);
|
||||
|
||||
|
||||
" assistance level ........: %d"
|
||||
getValue(CONSOLE, CONSOLE_ASSIST_INITLEVEL)
|
||||
|
||||
printf( " part number .............: %05d" ((getValue(CONSOLE, CONSOLE_SN_PN_HI) << 8) + getValue(CONSOLE, CONSOLE_SN_PN_LO)),
|
||||
" item number .............: %05d" ((getValue(CONSOLE, CONSOLE_SN_ITEM_HI) << 8) + getValue(CONSOLE, CONSOLE_SN_ITEM_LO))
|
||||
|
||||
|
||||
/* ASSIST speed limit */
|
||||
max limit enabled sl = getValue(CONSOLE, CONSOLE_ASSIST_MAXSPEEDFLAG) == 0 ? "no" : "yes";
|
||||
speed limit speedLimit = ((getValue(CONSOLE, CONSOLE_ASSIST_MAXSPEED_HI) << 8) + getValue(CONSOLE, CONSOLE_ASSIST_MAXSPEED_LO)) / (double)10;
|
||||
|
||||
/* MIN speed limit */
|
||||
sl = getValue(CONSOLE, CONSOLE_ASSIST_MINSPEEDFLAG) == 0 ? "no" : "yes";
|
||||
speedLimit = (getValue(CONSOLE, CONSOLE_ASSIST_MINSPEED)) / (double)10;
|
||||
|
||||
|
||||
/* THROTTLE speed limit */
|
||||
" throttle limit enabled ..: %sl = getValue(CONSOLE, CONSOLE_THROTTLE_MAXSPEEDFLAG) == 0 ? "no" : "yes";
|
||||
" throttle limit enabled ..: %s" = ((getValue(CONSOLE, CONSOLE_THROTTLE_MAXSPEED_HI) << 8) + getValue(CONSOLE, CONSOLE_THROTTLE_MAXSPEED_LO)) / (double)10;
|
||||
printf( " throttle limit enabled ..: %s" _NL
|
||||
" throttle speed limit ....: %0.2f Km/h" _NL _NL, sl, speedLimit);
|
||||
|
||||
/* WHEEL CIRCUMFERENCE */
|
||||
wheel circumference .....: %d mm" = (getValue(CONSOLE, CONSOLE_GEOMETRY_CIRC_HI) << 8) + getValue(CONSOLE, CONSOLE_GEOMETRY_CIRC_LO);
|
||||
|
||||
" mountain cap ............: %0.2f%%" _NL,
|
||||
(getValue(CONSOLE, CONSOLE_ASSIST_MOUNTAINCAP) * 1.5625));
|
||||
|
||||
printf( " odo .....................: %0.2f Km" _NL _NL,
|
||||
((getValue(CONSOLE, CONSOLE_STATS_ODO_1) << 24) +
|
||||
(getValue(CONSOLE, CONSOLE_STATS_ODO_2) << 16) +
|
||||
(getValue(CONSOLE, CONSOLE_STATS_ODO_3) << 8) +
|
||||
(getValue(CONSOLE, CONSOLE_STATS_ODO_4))) / (double)10
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
hwVersion = getValue(BATTERY, BATTERY_REF_HW);
|
||||
if (hwVersion == 0)
|
||||
printf("Battery not responding" _NL _NL);
|
||||
else {
|
||||
printf( "Battery information:" _NL
|
||||
" hardware version ........: %02d" _NL
|
||||
" software version ........: %02d" _NL,
|
||||
hwVersion, getValue(BATTERY, BATTERY_REF_SW)
|
||||
);
|
||||
|
||||
if (!gNoSerialNumbers)
|
||||
printf( " part number .............: %05d" _NL
|
||||
" item number .............: %05d" _NL,
|
||||
((getValue(BATTERY, BATTERY_SN_PN_HI) << 8) + getValue(BATTERY, BATTERY_SN_PN_LO)),
|
||||
((getValue(BATTERY, BATTERY_SN_ITEM_HI) << 8) + getValue(BATTERY, BATTERY_SN_ITEM_LO))
|
||||
);
|
||||
|
||||
printf( " voltage .................: %0.2fV" _NL
|
||||
" battery level ...........: %0.2f%%" _NL
|
||||
" maximum voltage .........: %0.2f%%" _NL
|
||||
" minimum voltage .........: %0.2f%%" _NL
|
||||
" mean voltage ............: %0.2f%%" _NL
|
||||
" resets ..................: %0d" _NL
|
||||
" ggjrCalib ...............: %0d" _NL
|
||||
" vctrlShorts .............: %0d" _NL
|
||||
" lmd .....................: %0.2fAh" _NL
|
||||
" cell capacity ...........: %0.2fAh" _NL _NL,
|
||||
((getValue(BATTERY, BATTERY_STATUS_VBATT_HI) << 8) + getValue(BATTERY, BATTERY_STATUS_VBATT_LO)) * 0.001,
|
||||
(getValue(BATTERY, BATTERY_STATUS_LEVEL) * 6.6667),
|
||||
getVoltageValue(BATTERY, BATTERY_STATS_VBATTMAX),
|
||||
getVoltageValue(BATTERY, BATTERY_STATS_VBATTMIN),
|
||||
getVoltageValue(BATTERY, BATTERY_STATS_VBATTMEAN),
|
||||
(getValue(BATTERY, BATTERY_STATS_RESET_HI) << 8) + getValue(BATTERY, BATTERY_STATS_RESET_LO),
|
||||
getValue(BATTERY, BATTERY_STSTS_GGJSRCALIB),
|
||||
getValue(BATTERY, BATTERY_STSTS_VCTRLSHORTS),
|
||||
((getValue(BATTERY, BATTERY_STATS_LMD_HI) << 8) + getValue(BATTERY, BATTERY_STATS_LMD_LO)) * 0.002142,
|
||||
((getValue(BATTERY, BATTERY_CONFIG_CELLCAPACITY_HI) << 8) + getValue(BATTERY, BATTERY_CONFIG_CELLCAPACITY_LO)) * 0.001
|
||||
);
|
||||
|
||||
printf( " charge time worst .......: %0d" _NL
|
||||
" charge time mean ........: %0d" _NL
|
||||
" charge cycles ...........: %0d" _NL
|
||||
" full charge cycles ......: %0d" _NL
|
||||
" power cycles ............: %0d" _NL
|
||||
" battery temp max ........: %0d" _NL
|
||||
" battery temp min ........: %0d" _NL _NL,
|
||||
(getValue(BATTERY, BATTERY_STATS_CHARGETIMEWORST_HI) << 8) + getValue(BATTERY, BATTERY_STATS_CHARGETIMEWORST_LO),
|
||||
(getValue(BATTERY, BATTERY_STATS_CHARGETIMEMEAN_HI) << 8) + getValue(BATTERY, BATTERY_STATS_CHARGETIMEMEAN_LO),
|
||||
(getValue(BATTERY, BATTERY_STATS_BATTCYCLES_HI) << 8) + getValue(BATTERY, BATTERY_STATS_BATTCYCLES_LO),
|
||||
(getValue(BATTERY, BATTERY_STATS_BATTFULLCYCLES_HI) << 8) + getValue(BATTERY, BATTERY_STATS_BATTFULLCYCLES_LO),
|
||||
(getValue(BATTERY, BATTERY_STATS_POWERCYCLES_HI) << 8) + getValue(BATTERY, BATTERY_STATS_POWERCYCLES_HI),
|
||||
getValue(BATTERY, BATTERY_STATS_TBATTMAX),
|
||||
getValue(BATTERY, BATTERY_STATS_TBATTMIN)
|
||||
);
|
||||
|
||||
printChargeStats();
|
||||
|
||||
if (hwVersion >= 60)
|
||||
printBatteryStats();
|
||||
else
|
||||
printf(" no battery details supported by battery hardware #%d" _NL _NL, hwVersion);
|
||||
}
|
||||
|
||||
hwVersion = getValue(MOTOR, MOTOR_REF_HW);
|
||||
if (hwVersion == 0)
|
||||
printf("Motor not responding" _NL _NL);
|
||||
else {
|
||||
printf( "Motor information:" _NL
|
||||
" hardware version ........: %02d" _NL
|
||||
" software version ........: %02d" _NL
|
||||
" temperature .............: %02d" _DEGREE_SIGN "C"_NL
|
||||
" speed limit .............: %02d Km/h" _NL,
|
||||
hwVersion, getValue(MOTOR, MOTOR_REF_SW),
|
||||
getValue(MOTOR, MOTOR_REALTIME_TEMP),
|
||||
getValue(MOTOR, MOTOR_ASSIST_MAXSPEED)
|
||||
);
|
||||
|
||||
wheelCirc = (getValue(MOTOR, MOTOR_GEOMETRY_CIRC_HI) << 8) + getValue(MOTOR, MOTOR_GEOMETRY_CIRC_LO);
|
||||
printf( " wheel circumference .....: %d mm" _NL _NL, wheelCirc);
|
||||
|
||||
if (!gNoSerialNumbers)
|
||||
printf( " part number .............: %05d" _NL
|
||||
" item number .............: %05d" _NL _NL,
|
||||
((getValue(MOTOR, MOTOR_SN_PN_HI) << 8) + getValue(MOTOR, MOTOR_SN_PN_LO)),
|
||||
((getValue(MOTOR, MOTOR_SN_ITEM_HI) << 8) + getValue(MOTOR, MOTOR_SN_ITEM_LO))
|
||||
);
|
||||
}
|
||||
}
|
||||
BIN
doc/~$_BikeInformation.docx
Normal file
BIN
doc/~$_BikeInformation.docx
Normal file
Binary file not shown.
BIN
doc/~$_ConsoleInformation.docx
Normal file
BIN
doc/~$_ConsoleInformation.docx
Normal file
Binary file not shown.
Reference in New Issue
Block a user