Double function air compressor diesel/electric