update raspi install and todo
This commit is contained in:
@@ -156,6 +156,9 @@ PRIVATE VOID vTask( PVOID arg )
|
|||||||
{
|
{
|
||||||
boOK &= ADCD_boReadData( ADCD_eHot, &error, &u16ADC_data[ADCD_eHot] );
|
boOK &= ADCD_boReadData( ADCD_eHot, &error, &u16ADC_data[ADCD_eHot] );
|
||||||
boOK &= ADCD_boReadData( ADCD_eCold, &error, &u16ADC_data[ADCD_eCold] );
|
boOK &= ADCD_boReadData( ADCD_eCold, &error, &u16ADC_data[ADCD_eCold] );
|
||||||
|
|
||||||
|
/** @todo call errorhandler if value == 0 */
|
||||||
|
|
||||||
if( boOK )
|
if( boOK )
|
||||||
{
|
{
|
||||||
flTempData[ADCD_eHot] = flConvertADCData( u16ADC_data[ADCD_eHot] );
|
flTempData[ADCD_eHot] = flConvertADCData( u16ADC_data[ADCD_eHot] );
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ Here few instructions to install the drivers for the communtications with the TE
|
|||||||
Add the following line to your /boot/config.txt file:
|
Add the following line to your /boot/config.txt file:
|
||||||
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
|
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
|
||||||
|
|
||||||
|
sudo reboot
|
||||||
|
|
||||||
pip3 install python-can
|
pip3 install python-can
|
||||||
... for python module
|
... for python module
|
||||||
|
|
||||||
|
maybe edit permissions
|
||||||
resetCAN.sh !!!
|
./resetCAN.sh
|
||||||
... for starting can0
|
... for starting can0
|
||||||
Reference in New Issue
Block a user